Hide empty private chats from list
This commit is contained in:
parent
f6e21b6428
commit
08b004f6a5
1 changed files with 4 additions and 0 deletions
|
@ -260,7 +260,11 @@ bool ChatListModel::ChatData::isHidden() const
|
|||
}
|
||||
break;
|
||||
case TDLibWrapper::ChatTypeUnknown:
|
||||
break;
|
||||
case TDLibWrapper::ChatTypePrivate:
|
||||
if (chatData.value(LAST_MESSAGE).isNull()) {
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case TDLibWrapper::ChatTypeSecret:
|
||||
if (secretChatState == TDLibWrapper::SecretChatStateClosed) {
|
||||
|
|
Loading…
Reference in a new issue