mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix long texts in invite link error toasts.
This commit is contained in:
parent
4ffe1d3acc
commit
2fddeb478b
1 changed files with 6 additions and 2 deletions
|
@ -151,7 +151,9 @@ void SessionNavigation::resolveChannelById(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const auto fail = [=] {
|
const auto fail = [=] {
|
||||||
Ui::Toast::Show(tr::lng_error_post_link_invalid(tr::now));
|
Ui::ShowMultilineToast({
|
||||||
|
.text = { tr::lng_error_post_link_invalid(tr::now) }
|
||||||
|
});
|
||||||
};
|
};
|
||||||
_session->api().request(base::take(_resolveRequestId)).cancel();
|
_session->api().request(base::take(_resolveRequestId)).cancel();
|
||||||
_resolveRequestId = _session->api().request(MTPchannels_GetChannels(
|
_resolveRequestId = _session->api().request(MTPchannels_GetChannels(
|
||||||
|
@ -185,7 +187,9 @@ void SessionNavigation::showPeerByLinkResolved(
|
||||||
if (const auto call = peer->groupCall()) {
|
if (const auto call = peer->groupCall()) {
|
||||||
parentController()->startOrJoinGroupCall(peer, hash);
|
parentController()->startOrJoinGroupCall(peer, hash);
|
||||||
} else {
|
} else {
|
||||||
Ui::Toast::Show(tr::lng_error_post_link_invalid(tr::now));
|
Ui::ShowMultilineToast({
|
||||||
|
.text = { tr::lng_group_invite_bad_link(tr::now) }
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue