fix some crashes and debug smtn

This commit is contained in:
2026-02-04 10:12:49 +00:00
parent 5c76729a6b
commit 6626d35920
2 changed files with 14 additions and 2 deletions

View File

@@ -48,8 +48,14 @@ func switchToTab(jid string, w *gtk.Window) {
scroller.SetChild(typed_tab.msgs)
if typed_tab.isMuc {
m, _ := mucmembers.Load(jid)
ma := m.(mucUnit)
m, ok := mucmembers.Load(jid)
if !ok {
return
}
ma, ok := m.(mucUnit)
if !ok {
return
}
mm := ma.Members
gen := gtk.NewBox(gtk.OrientationVertical, 0)