mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix possible crash in join channel toast.
This commit is contained in:
parent
8982a49192
commit
98abb3aa00
1 changed files with 1 additions and 1 deletions
|
@ -1746,7 +1746,7 @@ void ApiWrap::joinChannel(not_null<ChannelData*> channel) {
|
||||||
}
|
}
|
||||||
return QString();
|
return QString();
|
||||||
}();
|
}();
|
||||||
if (!text.isEmpty()) {
|
if (show && !text.isEmpty()) {
|
||||||
show->showToast(text, kJoinErrorDuration);
|
show->showToast(text, kJoinErrorDuration);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue