Implement private chat noforward following.

This commit is contained in:
John Preston
2026-02-06 14:18:30 +04:00
parent 5c7d2723ed
commit 4e9c0ea3a5
12 changed files with 120 additions and 36 deletions
+2
View File
@@ -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");