From 710a88cd7d6f9644587a95e4b60050c107aaae83 Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Thu, 30 Jun 2022 17:22:44 -0400 Subject: [PATCH] Update the nickname in existing subscriptions on re-subscription --- telegram/utils.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/telegram/utils.go b/telegram/utils.go index 99f9b68..17e9861 100644 --- a/telegram/utils.go +++ b/telegram/utils.go @@ -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(