diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2023-09-18 07:02:49 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2023-09-18 07:02:49 +0300 |
commit | 4249a8bf41513f14bdeead32c6cbc00389f9db74 (patch) | |
tree | 2209164249d76e3e19a0d5d10f5ba7d5d98f4bdf /telegram/utils.go | |
parent | f99f4f6acc6734ecbd0da80015285e6b3d39fdd8 (diff) |
Suppress nickname presences for MUCs better
Diffstat (limited to 'telegram/utils.go')
-rw-r--r-- | telegram/utils.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/telegram/utils.go b/telegram/utils.go index 3ab6b88..c12321d 100644 --- a/telegram/utils.go +++ b/telegram/utils.go @@ -1410,6 +1410,10 @@ func (c *Client) subscribeToID(id int64, chat *client.Chat) { chat, _, _ = c.GetContactByID(id, nil) } if chat != nil { + if c.Session.MUC && c.IsGroup(chat) { + return + } + args = append(args, gateway.SPNickname(chat.Title)) gateway.SetNickname(c.jid, strconv.FormatInt(id, 10), chat.Title, c.xmpp) |