Update xmpp_chat_client.go

Quickfix : go back to menu when contacts are updated from server.
This commit is contained in:
remicorniere 2019-12-23 09:25:39 +00:00 committed by GitHub
parent 26114d40eb
commit ccc573c3b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
} }