2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 16:05:57 +00:00

Add comments button to channel posts.

This commit is contained in:
John Preston
2020-09-03 11:19:02 +04:00
parent ce91caa820
commit 31e1ed216a
33 changed files with 642 additions and 139 deletions

View File

@@ -145,6 +145,9 @@ const ChannelLocation *ChannelData::getLocation() const {
void ChannelData::setLinkedChat(ChannelData *linked) {
if (_linkedChat != linked) {
_linkedChat = linked;
if (const auto history = owner().historyLoaded(this)) {
history->forceFullResize();
}
session().changes().peerUpdated(this, UpdateFlag::ChannelLinkedChat);
}
}