Update the nickname in existing subscriptions on re-subscription

This commit is contained in:
Bohdan Horbeshko 2022-06-30 17:22:44 -04:00
parent e2edbe37ea
commit 710a88cd7d

View file

@ -1076,6 +1076,8 @@ func (c *Client) subscribeToID(id int64, chat *client.Chat) {
}
if chat != nil {
args = append(args, gateway.SPNickname(chat.Title))
gateway.SetNickname(c.jid, strconv.FormatInt(id, 10), chat.Title, c.xmpp)
}
gateway.SendPresence(