mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Show better error on invite peek discussion group open.
This commit is contained in:
parent
1a3253ae8b
commit
27681db7f6
1 changed files with 5 additions and 0 deletions
|
@ -552,6 +552,11 @@ void Filler::addChannelActions(not_null<ChannelData*> channel) {
|
||||||
if (channel->isBroadcast()) {
|
if (channel->isBroadcast()) {
|
||||||
if (const auto chat = channel->linkedChat()) {
|
if (const auto chat = channel->linkedChat()) {
|
||||||
_addAction(tr::lng_profile_view_discussion(tr::now), [=] {
|
_addAction(tr::lng_profile_view_discussion(tr::now), [=] {
|
||||||
|
if (channel->invitePeekExpires()) {
|
||||||
|
Ui::Toast::Show(
|
||||||
|
tr::lng_channel_invite_private(tr::now));
|
||||||
|
return;
|
||||||
|
}
|
||||||
navigation->showPeerHistory(
|
navigation->showPeerHistory(
|
||||||
chat,
|
chat,
|
||||||
Window::SectionShow::Way::Forward);
|
Window::SectionShow::Way::Forward);
|
||||||
|
|
Loading…
Add table
Reference in a new issue