2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Hide export and fast share for noforwards.

This commit is contained in:
John Preston
2021-11-16 12:10:59 +04:00
parent 80fcffcc40
commit aab4dbb7cf
2 changed files with 2 additions and 2 deletions

View File

@@ -518,7 +518,7 @@ bool PeerData::canEditMessagesIndefinitely() const {
}
bool PeerData::canExportChatHistory() const {
if (isRepliesChat()) {
if (isRepliesChat() || !allowsForwarding()) {
return false;
}
if (const auto channel = asChannel()) {