aboutsummaryrefslogtreecommitdiff
path: root/telegram
diff options
context:
space:
mode:
Diffstat (limited to 'telegram')
-rw-r--r--telegram/handlers.go6
1 files changed, 1 insertions, 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,