Skip to content

Commit

Permalink
Respect data saver when syncing messages
Browse files Browse the repository at this point in the history
  • Loading branch information
f-r00t committed May 14, 2024
1 parent d685bb1 commit d22c61f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MainScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,10 @@ export async function backgroundSyncMessages(navigation) {
return;
}

if (Globals.preferences.limitData && type === 'cellular') {
Globals.logger.addLogMessage('[Message sync] On mobile data and data saver mode is on. Aborting.');
}

Globals.syncingMessages = true;

if (Globals.preferences.cacheEnabled == "true" && Globals.APIOnline) {
Expand Down

0 comments on commit d22c61f

Please sign in to comment.