2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Fix direct story links for channels.

This commit is contained in:
John Preston
2023-09-25 17:53:02 +04:00
parent eaa491518e
commit 846e96579d
3 changed files with 5 additions and 7 deletions

View File

@@ -502,7 +502,7 @@ void SessionNavigation::showPeerByLinkResolved(
info.messageId,
callback);
}
} else if (peer->isUser() && info.storyId) {
} else if (info.storyId) {
const auto storyId = FullStoryId{ peer->id, info.storyId };
peer->owner().stories().resolve(storyId, crl::guard(this, [=] {
if (peer->owner().stories().lookup(storyId)) {