2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Show comments button using 'has_link' flag.

This commit is contained in:
John Preston
2020-09-10 14:56:46 +03:00
parent 01ab6e6d4d
commit 47170da813
4 changed files with 29 additions and 22 deletions

View File

@@ -153,7 +153,11 @@ void ChannelData::setLinkedChat(ChannelData *linked) {
}
ChannelData *ChannelData::linkedChat() const {
return _linkedChat;
return _linkedChat.value_or(nullptr);
}
bool ChannelData::linkedChatKnown() const {
return _linkedChat.has_value();
}
void ChannelData::setMembersCount(int newMembersCount) {