mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 17:57:16 +00:00
Notify/status requires subscriptions
This commit is contained in:
parent
1573a1ad0e
commit
fb5c9fe2a1
1 changed files with 2 additions and 1 deletions
|
@ -950,6 +950,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
|
||||
// Debug
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
boolean subscriptions = prefs.getBoolean("subscriptions", false);
|
||||
boolean experiments = prefs.getBoolean("experiments", false);
|
||||
boolean debug = (prefs.getBoolean("debug", false) || BuildConfig.DEBUG);
|
||||
|
||||
|
@ -1315,7 +1316,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
if (sync && folder.selectable)
|
||||
EntityOperation.sync(this, folder.id, false, force && !forced);
|
||||
|
||||
if (capNotify && EntityFolder.INBOX.equals(folder.type))
|
||||
if (capNotify && subscriptions && EntityFolder.INBOX.equals(folder.type))
|
||||
ifolder.doCommand(new IMAPFolder.ProtocolCommand() {
|
||||
@Override
|
||||
public Object doCommand(IMAPProtocol protocol) throws ProtocolException {
|
||||
|
|
Loading…
Reference in a new issue