2
0
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:
John Preston
2023-07-04 20:13:56 +04:00
parent 9a29807276
commit d7d8847c1d
11 changed files with 259 additions and 33 deletions

View File

@@ -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;