From e260668f91ee7a1a1fb8ecaa159c6795b9db2eb2 Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Mon, 17 Jan 2022 12:19:59 -0500 Subject: [PATCH] Revert "Don't subscribe to chat updates with no conversations" This reverts commit 23f2a85301f2ee5af867fa774a406cf308733714. (Why did I add this at all, lol.) --- telegram/handlers.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/telegram/handlers.go b/telegram/handlers.go index bb4beff..b76ea23 100644 --- a/telegram/handlers.go +++ b/telegram/handlers.go @@ -156,11 +156,7 @@ func (c *Client) updateNewChat(update *client.UpdateNewChat) { isChannel = typeSupergroup.IsChannel } - // don't subscribe to channel posters - if !((isChannel && update.Chat.LastReadInboxMessageID == 0) || - // don't subscribe to chats with no conversation - // (manual adding will trigger a subscribe anyway) - (update.Chat.LastReadInboxMessageID == 0 && update.Chat.LastReadOutboxMessageID == 0)) { + if !(isChannel && update.Chat.LastReadInboxMessageID == 0) { gateway.SendPresence( c.xmpp, c.jid,