2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Support slowmode restrictions in Replies section.

This commit is contained in:
John Preston
2020-09-30 14:06:08 +03:00
parent 719bed6e85
commit 94c2969f8b
11 changed files with 174 additions and 27 deletions

View File

@@ -234,7 +234,6 @@ void SessionNavigation::showPeerByLinkResolved(
showPeerHistory(peer->id, params, msgId);
});
}
}
void SessionNavigation::showRepliesForMessage(
@@ -246,6 +245,9 @@ void SessionNavigation::showRepliesForMessage(
&& _showingRepliesHistory == history.get()
&& _showingRepliesRootId == rootId) {
return;
} else if (!history->peer->asChannel()) {
// HistoryView::RepliesWidget right now handles only channels.
return;
}
_session->api().request(base::take(_showingRepliesRequestId)).cancel();