Fix channel stories open from chats list.

This commit is contained in:
John Preston 2023-09-29 21:13:32 +04:00
parent f881192dd0
commit 6ba922d7b0
1 changed files with 6 additions and 8 deletions

View File

@ -536,14 +536,12 @@ void Widget::chosenRow(const ChosenRow &row) {
return;
} else if (history) {
const auto peer = history->peer;
if (const auto user = peer->asUser()) {
if (row.message.fullId.msg == ShowAtUnreadMsgId) {
if (row.userpicClick
&& user->hasActiveStories()
&& !user->isSelf()) {
controller()->openPeerStories(user->id);
return;
}
if (row.message.fullId.msg == ShowAtUnreadMsgId) {
if (row.userpicClick
&& peer->hasActiveStories()
&& !peer->isSelf()) {
controller()->openPeerStories(peer->id);
return;
}
}
const auto showAtMsgId = controller()->uniqueChatsInSearchResults()