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

Track noforwards flag in specific messages.

This commit is contained in:
John Preston
2021-11-25 18:33:53 +04:00
parent 886ff7de50
commit 0f443da758
22 changed files with 179 additions and 109 deletions

View File

@@ -521,8 +521,7 @@ bool PeerData::canEditMessagesIndefinitely() const {
bool PeerData::canExportChatHistory() const {
if (isRepliesChat() || !allowsForwarding()) {
return false;
}
if (const auto channel = asChannel()) {
} else if (const auto channel = asChannel()) {
if (!channel->amIn() && channel->invitePeekExpires()) {
return false;
}