mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Hide export and fast share for noforwards.
This commit is contained in:
parent
80fcffcc40
commit
aab4dbb7cf
2 changed files with 2 additions and 2 deletions
Telegram/SourceFiles
|
@ -518,7 +518,7 @@ bool PeerData::canEditMessagesIndefinitely() const {
|
|||
}
|
||||
|
||||
bool PeerData::canExportChatHistory() const {
|
||||
if (isRepliesChat()) {
|
||||
if (isRepliesChat() || !allowsForwarding()) {
|
||||
return false;
|
||||
}
|
||||
if (const auto channel = asChannel()) {
|
||||
|
|
|
@ -2217,7 +2217,7 @@ std::optional<QSize> Message::rightActionSize() const {
|
|||
bool Message::displayFastShare() const {
|
||||
const auto item = message();
|
||||
const auto peer = item->history()->peer;
|
||||
if (!item->isRegular()) {
|
||||
if (!item->isRegular() || !peer->allowsForwarding()) {
|
||||
return false;
|
||||
} else if (peer->isChannel()) {
|
||||
return !peer->isMegagroup();
|
||||
|
|
Loading…
Add table
Reference in a new issue