h
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user