2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Update API scheme, add admin log filter.

This commit is contained in:
John Preston
2020-12-08 20:05:55 +04:00
parent 546881c720
commit d6ab9347c1
4 changed files with 9 additions and 2 deletions

View File

@@ -233,8 +233,13 @@ void GroupCall::rejoin() {
}).fail([=](const RPCError &error) {
const auto type = error.type();
LOG(("Call Error: Could not join, error: %1").arg(type));
hangup();
if (type == u"GROUPCALL_SSRC_DUPLICATE_MUCH") {
rejoin();
return;
}
hangup();
Ui::ShowMultilineToast({
.text = (type == u"GROUPCALL_ANONYMOUS_FORBIDDEN"_q
? tr::lng_group_call_no_anonymous(tr::now)