mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Added ability to rejoin to subscribed channel after left.
This commit is contained in:
parent
c6ea91e671
commit
0a0dab74a1
1 changed files with 5 additions and 2 deletions
|
@ -367,12 +367,15 @@ void CheckChatInvite(
|
||||||
result.match([=](const MTPDchatInvite &data) {
|
result.match([=](const MTPDchatInvite &data) {
|
||||||
const auto isGroup = !data.is_broadcast();
|
const auto isGroup = !data.is_broadcast();
|
||||||
const auto hasPricing = !!data.vsubscription_pricing();
|
const auto hasPricing = !!data.vsubscription_pricing();
|
||||||
if (hasPricing && !data.vsubscription_form_id()) {
|
const auto canRefulfill = data.is_can_refulfill_subscription();
|
||||||
|
if (hasPricing
|
||||||
|
&& !canRefulfill
|
||||||
|
&& !data.vsubscription_form_id()) {
|
||||||
strong->uiShow()->showToast(
|
strong->uiShow()->showToast(
|
||||||
tr::lng_confirm_phone_link_invalid(tr::now));
|
tr::lng_confirm_phone_link_invalid(tr::now));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const auto box = hasPricing
|
const auto box = (hasPricing && !canRefulfill)
|
||||||
? strong->show(Box(
|
? strong->show(Box(
|
||||||
ConfirmSubscriptionBox,
|
ConfirmSubscriptionBox,
|
||||||
session,
|
session,
|
||||||
|
|
Loading…
Add table
Reference in a new issue