mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Implement private chat noforward following.
This commit is contained in:
@@ -524,6 +524,8 @@ void ApiWrap::sendMessageFail(
|
||||
} else if (show && error == u"CHAT_FORWARDS_RESTRICTED"_q) {
|
||||
show->showToast(peer->isBroadcast()
|
||||
? tr::lng_error_noforwards_channel(tr::now)
|
||||
: peer->isUser()
|
||||
? tr::lng_error_noforwards_user(tr::now)
|
||||
: tr::lng_error_noforwards_group(tr::now), kJoinErrorDuration);
|
||||
} else if (error == u"PREMIUM_ACCOUNT_REQUIRED"_q) {
|
||||
Settings::ShowPremium(&session(), "premium_stickers");
|
||||
|
||||
Reference in New Issue
Block a user