This commit is contained in:
2026-05-18 06:27:55 +01:00
parent 98cd855349
commit 5f95df147f
4 changed files with 70 additions and 20 deletions
+11 -7
View File
@@ -14,9 +14,9 @@ import (
"github.com/diamondburned/gotk4/pkg/gtk/v4"
"github.com/gen2brain/beeep"
"github.com/go-analyze/charts"
"github.com/google/uuid"
"golang.org/x/net/html/charset"
"path/filepath"
"github.com/google/uuid"
"github.com/BurntSushi/toml"
"gosrc.io/xmpp"
@@ -216,12 +216,6 @@ func main() {
fmt.Println(e)
}
/*
if m.Body == "" {
return
}
*/
originator := JidMustParse(m.From).Bare()
glib.IdleAdd(func() {
mStatus.SetText(originator)
@@ -411,6 +405,16 @@ func main() {
// The code is basically the exact same as above, we just don't check for mucuser
// TODO: Presence handling code goes here
j := presence.From
tab, ok := tabs.Load(j)
if ok {
typed_tab, ok := tab.(*chatTab)
if ok {
if typed_tab.isMuc {
typed_tab.muc_presence = &presence
}
}
}
}
})