From 9ebe33a4195148675790f05ef8c3fdb07403352f Mon Sep 17 00:00:00 2001 From: Sebastian Wolf Date: Sun, 14 Feb 2021 12:55:54 +0100 Subject: [PATCH] Relax rule for hiding private chats --- src/chatlistmodel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/chatlistmodel.cpp b/src/chatlistmodel.cpp index 5d354f7..94719c7 100644 --- a/src/chatlistmodel.cpp +++ b/src/chatlistmodel.cpp @@ -262,7 +262,9 @@ bool ChatListModel::ChatData::isHidden() const case TDLibWrapper::ChatTypeUnknown: break; case TDLibWrapper::ChatTypePrivate: - if (chatData.value(LAST_MESSAGE).isNull()) { + if (chatData.value(LAST_MESSAGE).isNull() + && chatData.value(LAST_READ_INBOX_MESSAGE_ID).toLongLong() == 0 + && chatData.value(LAST_READ_OUTBOX_MESSAGE_ID).toLongLong() == 0) { return true; } break;