2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Remove supergroup migrate messages.

This commit is contained in:
John Preston
2019-01-15 15:57:45 +04:00
parent c552db04d7
commit 2a0b9a44dd
40 changed files with 695 additions and 481 deletions

View File

@@ -2759,7 +2759,7 @@ not_null<Feed*> Session::feed(FeedId id) {
}
const auto [it, ok] = _feeds.emplace(
id,
std::make_unique<Feed>(id, this));
std::make_unique<Feed>(this, id));
return it->second.get();
}
@@ -3038,9 +3038,7 @@ void Session::setProxyPromoted(PeerData *promoted) {
if (_proxyPromoted) {
const auto history = this->history(_proxyPromoted);
history->cacheProxyPromoted(true);
if (!history->lastMessageKnown()) {
_session->api().requestDialogEntry(history);
}
history->requestChatListMessage();
Notify::peerUpdatedDelayed(
_proxyPromoted,
Notify::PeerUpdate::Flag::ChannelPromotedChanged);