mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-04 20:52:54 +01:00
userinfo: skip resync if client isn't logged in
This commit is contained in:
parent
220dc219b8
commit
905f9ff976
1 changed files with 4 additions and 0 deletions
|
@ -92,6 +92,10 @@ func (wa *WhatsAppClient) rotateResyncQueue() map[types.JID]resyncQueueItem {
|
|||
|
||||
func (wa *WhatsAppClient) doGhostResync(ctx context.Context, queue map[types.JID]resyncQueueItem) {
|
||||
log := zerolog.Ctx(ctx)
|
||||
if !wa.IsLoggedIn() {
|
||||
log.Warn().Msg("Not logged in, skipping background resyncs")
|
||||
return
|
||||
}
|
||||
log.Debug().Msg("Starting background resyncs")
|
||||
defer log.Debug().Msg("Background resyncs finished")
|
||||
var ghostJIDs []types.JID
|
||||
|
|
Loading…
Reference in a new issue