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