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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user