chore: sync history regardless of connection type (#4656)
This commit is contained in:
parent
7816ee186d
commit
e9b10c4beb
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue