Swipe to read: wait for db update

pull/214/head
M66B 1 year ago
parent 824d26b987
commit 8f9dfbe545

@ -3189,10 +3189,8 @@ public class FragmentMessages extends FragmentBase
redraw(viewHolder); redraw(viewHolder);
onSwipeAsk(message, viewHolder); onSwipeAsk(message, viewHolder);
} else if (EntityMessage.SWIPE_ACTION_SEEN.equals(action)) { } else if (EntityMessage.SWIPE_ACTION_SEEN.equals(action)) {
message.unseen = (message.unseen == 0 ? message.count : 0);
message.ui_seen = (message.unseen == 0);
redraw(viewHolder); redraw(viewHolder);
onActionSeenSelection(message.ui_seen, message.id, false); onActionSeenSelection(!message.ui_seen, message.id, false);
} else if (EntityMessage.SWIPE_ACTION_FLAG.equals(action)) } else if (EntityMessage.SWIPE_ACTION_FLAG.equals(action))
onActionFlagSelection(!message.ui_flagged, Color.TRANSPARENT, message.id, false); onActionFlagSelection(!message.ui_flagged, Color.TRANSPARENT, message.id, false);
else if (EntityMessage.SWIPE_ACTION_SNOOZE.equals(action)) else if (EntityMessage.SWIPE_ACTION_SNOOZE.equals(action))

Loading…
Cancel
Save