Relax rule for hiding private chats
This commit is contained in:
parent
352789f79d
commit
9ebe33a419
1 changed files with 3 additions and 1 deletions
|
@ -262,7 +262,9 @@ bool ChatListModel::ChatData::isHidden() const
|
||||||
case TDLibWrapper::ChatTypeUnknown:
|
case TDLibWrapper::ChatTypeUnknown:
|
||||||
break;
|
break;
|
||||||
case TDLibWrapper::ChatTypePrivate:
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue