Auto close on unread / one message

pull/201/head
M66B 4 years ago
parent 6e8c52a9df
commit c90ebd6ab1

@ -4809,7 +4809,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
message.ui_seen = args.getBoolean("seen");
message.unseen = (message.ui_seen ? 0 : message.count);
if (!message.ui_seen && autoclose_unseen)
if (!message.ui_seen &&
(autoclose_unseen || getItemCount() == 1))
properties.finish();
else
properties.setExpanded(message, false, false);

Loading…
Cancel
Save