NOBODYSETISGONELETSGO

This commit is contained in:
2026-07-17 18:38:35 +01:00
parent 3bb74eb672
commit b07f92853d
2 changed files with 18 additions and 10 deletions
+6 -4
View File
@@ -293,7 +293,6 @@ func main() {
typed_tab := tab.(*chatTab)
if ok {
typed_tab.msgs.Append(b)
if current == JidMustParse(m.From).Bare() {
scrollToBottomAfterUpdate(scroller)
}
@@ -301,10 +300,13 @@ func main() {
fmt.Println("Got message when the tab does not exist!")
}
ba, ok := generateMessageWidget(p).(*gtk.Box)
if ok {
untyped_box, valid := generateMessageWidget(p)
ba, converted_successfully := untyped_box.(*gtk.Box)
if valid && converted_successfully {
typed_tab.msgs.Append(b)
b.Append(ba)
}
}
})
})