Auto close on unread / one message

This commit is contained in:
M66B 2021-08-01 08:15:49 +02:00
parent 6e8c52a9df
commit c90ebd6ab1
1 changed files with 2 additions and 1 deletions

View File

@ -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);