mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 23:25:15 +00:00
Open hidden stories by archive userpic click.
This commit is contained in:
@@ -526,7 +526,7 @@ 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 = history->peer->asUser()) {
|
if (const auto user = peer->asUser()) {
|
||||||
if (row.message.fullId.msg == ShowAtUnreadMsgId) {
|
if (row.message.fullId.msg == ShowAtUnreadMsgId) {
|
||||||
if (row.userpicClick
|
if (row.userpicClick
|
||||||
&& user->hasActiveStories()
|
&& user->hasActiveStories()
|
||||||
@@ -549,6 +549,14 @@ void Widget::chosenRow(const ChosenRow &row) {
|
|||||||
hideChildList();
|
hideChildList();
|
||||||
}
|
}
|
||||||
} else if (const auto folder = row.key.folder()) {
|
} else if (const auto folder = row.key.folder()) {
|
||||||
|
if (row.userpicClick) {
|
||||||
|
const auto list = Data::StorySourcesList::Hidden;
|
||||||
|
const auto &sources = session().data().stories().sources(list);
|
||||||
|
if (!sources.empty()) {
|
||||||
|
controller()->openPeerStories(sources.front().id, list);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
controller()->openFolder(folder);
|
controller()->openFolder(folder);
|
||||||
hideChildList();
|
hideChildList();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user