Relax rule for hiding private chats

This commit is contained in:
Sebastian Wolf 2021-02-14 12:55:54 +01:00
parent 352789f79d
commit 9ebe33a419
No known key found for this signature in database
GPG key ID: CEA9522B5F38A90A

View file

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