mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
Show stories in chats list userpics.
This commit is contained in:
@@ -503,6 +503,14 @@ void Widget::chosenRow(const ChosenRow &row) {
|
||||
return;
|
||||
} else if (history) {
|
||||
const auto peer = history->peer;
|
||||
if (const auto user = history->peer->asUser()) {
|
||||
if (row.message.fullId.msg == ShowAtUnreadMsgId) {
|
||||
if (row.userpicClick && user->hasActiveStories()) {
|
||||
controller()->openPeerStories(user->id);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
const auto showAtMsgId = controller()->uniqueChatsInSearchResults()
|
||||
? ShowAtUnreadMsgId
|
||||
: row.message.fullId.msg;
|
||||
|
Reference in New Issue
Block a user