Rebind/collapse on mark seen/unseen

This commit is contained in:
M66B 2019-12-31 20:15:46 +01:00
parent b09e2058de
commit b532374c28
1 changed files with 4 additions and 7 deletions

View File

@ -3301,13 +3301,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (amessage == null || !amessage.id.equals(id)) if (amessage == null || !amessage.id.equals(id))
return; return;
boolean seen = args.getBoolean("seen"); properties.setValue("expanded", message.id, false);
if (!seen) { message.ui_seen = args.getBoolean("seen");
properties.setValue("expanded", message.id, false); message.unseen = (message.ui_seen ? 0 : message.count);
ibExpander.setTag(false); bindTo(message, getAdapterPosition());
ibExpander.setImageLevel(1 /* more */);
clearExpanded(amessage);
}
} }
@Override @Override