mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08:00
Fix showPeer crash when no chat is active
Task: 2026/08/13/fix-showpeer-crash-with-no-active-chat
This commit is contained in:
@@ -2816,7 +2816,8 @@ void SessionController::showPeer(not_null<PeerData*> peer, MsgId msgId) {
|
||||
const auto clickedChannel = peer->asChannel();
|
||||
if (!clickedChannel->isPublic()
|
||||
&& !clickedChannel->amIn()
|
||||
&& (!currentPeer->isChannel()
|
||||
&& (!currentPeer
|
||||
|| !currentPeer->isChannel()
|
||||
|| currentPeer->asChannel()->discussionLink()
|
||||
!= clickedChannel)) {
|
||||
MainWindowShow(this).showToast(peer->isMegagroup()
|
||||
|
||||
Reference in New Issue
Block a user