mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-04 16:45:12 +00:00
Fix channel stories open from chats list.
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user