mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2025-11-04 17:23:43 -08:00
Update xmpp_chat_client.go
Quickfix : go back to menu when contacts are updated from server.
This commit is contained in:
@@ -318,6 +318,7 @@ func askForRoster(client xmpp.Sender, g *gocui.Gui, config *config) {
|
|||||||
for _, item := range rosterItems.Items {
|
for _, item := range rosterItems.Items {
|
||||||
viewState.contacts = append(viewState.contacts, item.Jid)
|
viewState.contacts = append(viewState.contacts, item.Jid)
|
||||||
}
|
}
|
||||||
|
viewState.contacts = append(viewState.contacts, backFromContacts)
|
||||||
fmt.Fprintln(chlw, infoFormat+"Contacts list updated !")
|
fmt.Fprintln(chlw, infoFormat+"Contacts list updated !")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user