diff --git a/telegram/connect.go b/telegram/connect.go index 696a34f..56b44af 100644 --- a/telegram/connect.go +++ b/telegram/connect.go @@ -172,6 +172,10 @@ func (c *Client) Connect(resource string, wasSessionLoginEmpty bool) error { log.Infof("Obtained ≈%v chats for initialization", chats.TotalCount) } + if c.Session.MUC { + log.Infof("Warmed cache for %v group chats for initialization", len(c.GetGroupChats())) + } + gateway.SubscribeToTransport(c.xmpp, c.jid) loggedInString := "Logged in as: " + c.Session.Login c.sendPresence(gateway.SPStatus(loggedInString))