Fix channel stories open from chats list.
This commit is contained in:
parent
f881192dd0
commit
6ba922d7b0
|
@ -536,14 +536,12 @@ void Widget::chosenRow(const ChosenRow &row) {
|
||||||
return;
|
return;
|
||||||
} else if (history) {
|
} else if (history) {
|
||||||
const auto peer = history->peer;
|
const auto peer = history->peer;
|
||||||
if (const auto user = peer->asUser()) {
|
if (row.message.fullId.msg == ShowAtUnreadMsgId) {
|
||||||
if (row.message.fullId.msg == ShowAtUnreadMsgId) {
|
if (row.userpicClick
|
||||||
if (row.userpicClick
|
&& peer->hasActiveStories()
|
||||||
&& user->hasActiveStories()
|
&& !peer->isSelf()) {
|
||||||
&& !user->isSelf()) {
|
controller()->openPeerStories(peer->id);
|
||||||
controller()->openPeerStories(user->id);
|
return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const auto showAtMsgId = controller()->uniqueChatsInSearchResults()
|
const auto showAtMsgId = controller()->uniqueChatsInSearchResults()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user