Auto seen on uid available

pull/212/head
M66B 1 year ago
parent a8c07344e8
commit 42bde9ea04

@ -7789,11 +7789,15 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
same = false; same = false;
log("uid changed", next.id); log("uid changed", next.id);
// Download body when needed if (prev.uid == null && next.uid != null) { // once only
if (!next.content && // Mark seen when needed
prev.uid == null && next.uid != null && // once only if (!Boolean.TRUE.equals(next.ui_seen) && next.accountAutoSeen)
properties.getValue("expanded", next.id)) EntityOperation.queue(context, next, EntityOperation.SEEN, true);
EntityOperation.queue(context, next, EntityOperation.BODY);
// Download body when needed
if (!next.content && properties.getValue("expanded", next.id))
EntityOperation.queue(context, next, EntityOperation.BODY);
}
} }
if (!Objects.equals(prev.msgid, next.msgid)) { if (!Objects.equals(prev.msgid, next.msgid)) {
// debug info // debug info

Loading…
Cancel
Save