Skip setting important / rule flag

pull/209/head
M66B 2 years ago
parent f1b94d35cf
commit 0198d43484

@ -136,7 +136,7 @@ public class EntityOperation {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean auto_important = prefs.getBoolean("auto_important", false); boolean auto_important = prefs.getBoolean("auto_important", false);
if (auto_important) { if (auto_important && jargs.optBoolean(2, true)) {
db.message().setMessageImportance(message.id, flagged ? EntityMessage.PRIORITIY_HIGH : null); db.message().setMessageImportance(message.id, flagged ? EntityMessage.PRIORITIY_HIGH : null);
queue(context, message, KEYWORD, MessageHelper.FLAG_LOW_IMPORTANCE, false); queue(context, message, KEYWORD, MessageHelper.FLAG_LOW_IMPORTANCE, false);
queue(context, message, KEYWORD, MessageHelper.FLAG_HIGH_IMPORTANCE, true); queue(context, message, KEYWORD, MessageHelper.FLAG_HIGH_IMPORTANCE, true);

@ -1050,7 +1050,7 @@ public class EntityRule {
Integer color = (jargs.has("color") && !jargs.isNull("color") Integer color = (jargs.has("color") && !jargs.isNull("color")
? jargs.getInt("color") : null); ? jargs.getInt("color") : null);
EntityOperation.queue(context, message, EntityOperation.FLAG, true, color); EntityOperation.queue(context, message, EntityOperation.FLAG, true, color, false);
message.ui_flagged = true; message.ui_flagged = true;
message.color = color; message.color = color;

Loading…
Cancel
Save