mirror of
https://github.com/M66B/FairEmail.git
synced 2026-05-02 21:56:51 +02:00
Flag snoozed from notification
This commit is contained in:
@@ -439,6 +439,7 @@ public class ServiceUI extends IntentService {
|
||||
|
||||
private void onSnooze(long id) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
boolean flag_snoozed = prefs.getBoolean("flag_snoozed", false);
|
||||
int default_snooze = prefs.getInt("default_snooze", 1);
|
||||
if (default_snooze == 0)
|
||||
default_snooze = 1;
|
||||
@@ -457,6 +458,9 @@ public class ServiceUI extends IntentService {
|
||||
db.message().setMessageUiIgnored(message.id, true);
|
||||
EntityMessage.snooze(this, id, wakeup);
|
||||
|
||||
if (flag_snoozed)
|
||||
EntityOperation.queue(this, message, EntityOperation.FLAG, true);
|
||||
|
||||
db.setTransactionSuccessful();
|
||||
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user