mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Allowed to forward voice messages without full user info.
This commit is contained in:
@@ -1377,7 +1377,17 @@ void FastShareMessage(
|
||||
}
|
||||
}
|
||||
finish();
|
||||
}).fail([=] {
|
||||
}).fail([=](const MTP::Error &error) {
|
||||
if (error.type() == u"VOICE_MESSAGES_FORBIDDEN"_q) {
|
||||
if (show->valid()) {
|
||||
Ui::Toast::Show(
|
||||
show->toastParent(),
|
||||
tr::lng_restricted_send_voice_messages(
|
||||
tr::now,
|
||||
lt_user,
|
||||
peer->name));
|
||||
}
|
||||
}
|
||||
finish();
|
||||
}).afterRequest(history->sendRequestId).send();
|
||||
return history->sendRequestId;
|
||||
|
Reference in New Issue
Block a user