mirror of
https://dev.narayana.im/narayana/telegabber.git
synced 2026-10-07 08:41:47 +00:00
Pre-fetch group chats for disco queries
This commit is contained in:
parent
220083df74
commit
b315eeff1e
1 changed files with 4 additions and 0 deletions
|
|
@ -172,6 +172,10 @@ func (c *Client) Connect(resource string, wasSessionLoginEmpty bool) error {
|
||||||
log.Infof("Obtained ≈%v chats for initialization", chats.TotalCount)
|
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)
|
gateway.SubscribeToTransport(c.xmpp, c.jid)
|
||||||
loggedInString := "Logged in as: " + c.Session.Login
|
loggedInString := "Logged in as: " + c.Session.Login
|
||||||
c.sendPresence(gateway.SPStatus(loggedInString))
|
c.sendPresence(gateway.SPStatus(loggedInString))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue