fix some crashes and debug smtn
This commit is contained in:
@@ -48,8 +48,14 @@ func switchToTab(jid string, w *gtk.Window) {
|
|||||||
|
|
||||||
scroller.SetChild(typed_tab.msgs)
|
scroller.SetChild(typed_tab.msgs)
|
||||||
if typed_tab.isMuc {
|
if typed_tab.isMuc {
|
||||||
m, _ := mucmembers.Load(jid)
|
m, ok := mucmembers.Load(jid)
|
||||||
ma := m.(mucUnit)
|
if !ok {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
ma, ok := m.(mucUnit)
|
||||||
|
if !ok {
|
||||||
|
return
|
||||||
|
}
|
||||||
mm := ma.Members
|
mm := ma.Members
|
||||||
gen := gtk.NewBox(gtk.OrientationVertical, 0)
|
gen := gtk.NewBox(gtk.OrientationVertical, 0)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user