mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 07:25:46 +00:00
Added handle of flood errors on requesting to check chat invite.
Fixed #29368.
This commit is contained in:
@@ -437,6 +437,12 @@ void CheckChatInvite(
|
||||
}
|
||||
});
|
||||
}, [=](const MTP::Error &error) {
|
||||
if (MTP::IsFloodError(error)) {
|
||||
if (const auto strong = weak.get()) {
|
||||
strong->show(Ui::MakeInformBox(tr::lng_flood_error()));
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (error.code() != 400) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user