mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
Hide export and fast share for noforwards.
This commit is contained in:
@@ -518,7 +518,7 @@ bool PeerData::canEditMessagesIndefinitely() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool PeerData::canExportChatHistory() const {
|
bool PeerData::canExportChatHistory() const {
|
||||||
if (isRepliesChat()) {
|
if (isRepliesChat() || !allowsForwarding()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (const auto channel = asChannel()) {
|
if (const auto channel = asChannel()) {
|
||||||
|
@@ -2217,7 +2217,7 @@ std::optional<QSize> Message::rightActionSize() const {
|
|||||||
bool Message::displayFastShare() const {
|
bool Message::displayFastShare() const {
|
||||||
const auto item = message();
|
const auto item = message();
|
||||||
const auto peer = item->history()->peer;
|
const auto peer = item->history()->peer;
|
||||||
if (!item->isRegular()) {
|
if (!item->isRegular() || !peer->allowsForwarding()) {
|
||||||
return false;
|
return false;
|
||||||
} else if (peer->isChannel()) {
|
} else if (peer->isChannel()) {
|
||||||
return !peer->isMegagroup();
|
return !peer->isMegagroup();
|
||||||
|
Reference in New Issue
Block a user