chore: sync history regardless of connection type (#4656)

This commit is contained in:
richΛrd 2024-02-02 13:03:55 -04:00 committed by GitHub
parent 7816ee186d
commit e9b10c4beb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 14 deletions

View File

@ -51,20 +51,7 @@ func (m *Messenger) shouldSync() (bool, error) {
return false, err
}
if !useMailserver {
return false, nil
}
if !m.connectionState.IsExpensive() {
return true, nil
}
syncingOnMobileNetwork, err := m.settings.CanSyncOnMobileNetwork()
if err != nil {
return false, err
}
return syncingOnMobileNetwork, nil
return useMailserver, nil
}
func (m *Messenger) scheduleSyncChat(chat *Chat) (bool, error) {