mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 09:01:30 +01:00
Added auto important option
This commit is contained in:
@@ -142,6 +142,12 @@ public class EntityOperation {
|
||||
db.message().setMessageUiFlagged(similar.id, flagged, flagged ? color : null);
|
||||
queue(context, similar.account, similar.folder, similar.id, name, jargs);
|
||||
}
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
boolean auto_important = prefs.getBoolean("auto_important", false);
|
||||
if (auto_important && flagged)
|
||||
db.message().setMessageImportance(message.id, 2);
|
||||
|
||||
return;
|
||||
|
||||
} else if (ANSWERED.equals(name)) {
|
||||
|
||||
Reference in New Issue
Block a user