mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-25 15:32:52 +00:00
Prevent scroll up on auto move
This commit is contained in:
parent
c7a69a7970
commit
86b0f99138
2 changed files with 5 additions and 1 deletions
|
@ -2374,10 +2374,12 @@ class Core {
|
|||
runRules(context, imessage, message, rules);
|
||||
|
||||
// Prepare scroll to top
|
||||
if (!message.ui_seen && message.received > account.created) {
|
||||
if (!message.ui_seen && !message.ui_hide &&
|
||||
message.received > account.created) {
|
||||
Intent report = new Intent(ActivityView.ACTION_NEW_MESSAGE);
|
||||
report.putExtra("folder", folder.id);
|
||||
report.putExtra("unified", folder.unified);
|
||||
Log.i("Report new id=" + message.id + " folder=" + folder.name + " unified=" + folder.unified);
|
||||
|
||||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
|
||||
lbm.sendBroadcast(report);
|
||||
|
|
|
@ -358,6 +358,8 @@ public class EntityRule {
|
|||
for (EntityMessage threaded : messages)
|
||||
EntityOperation.queue(context, threaded, EntityOperation.MOVE, target, seen);
|
||||
|
||||
message.ui_hide = true;
|
||||
|
||||
if (seen) {
|
||||
message.ui_seen = true;
|
||||
message.ui_ignored = true;
|
||||
|
|
Loading…
Reference in a new issue