mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +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) {
|
||||
const auto isGroup = !data.is_broadcast();
|
||||
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(
|
||||
tr::lng_confirm_phone_link_invalid(tr::now));
|
||||
return;
|
||||
}
|
||||
const auto box = hasPricing
|
||||
const auto box = (hasPricing && !canRefulfill)
|
||||
? strong->show(Box(
|
||||
ConfirmSubscriptionBox,
|
||||
session,
|
||||
|
|
Loading…
Add table
Reference in a new issue