2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Use round thumbnail in forum stories.

This commit is contained in:
John Preston
2024-02-16 11:26:42 +04:00
parent 38e082422a
commit 137155afd8
4 changed files with 30 additions and 17 deletions

View File

@@ -528,6 +528,13 @@ void Widget::chosenRow(const ChosenRow &row) {
topic,
row.message.fullId.msg,
Window::SectionShow::Way::ClearStack);
} else if (history
&& row.userpicClick
&& (row.message.fullId.msg == ShowAtUnreadMsgId)
&& history->peer->hasActiveStories()
&& !history->peer->isSelf()) {
controller()->openPeerStories(history->peer->id);
return;
} else if (history
&& history->isForum()
&& !row.message.fullId
@@ -558,14 +565,6 @@ void Widget::chosenRow(const ChosenRow &row) {
return;
} else if (history) {
const auto peer = history->peer;
if (row.message.fullId.msg == ShowAtUnreadMsgId) {
if (row.userpicClick
&& peer->hasActiveStories()
&& !peer->isSelf()) {
controller()->openPeerStories(peer->id);
return;
}
}
const auto showAtMsgId = controller()->uniqueChatsInSearchResults()
? ShowAtUnreadMsgId
: row.message.fullId.msg;

View File

@@ -66,7 +66,7 @@ Content State::next() {
if (const auto i = _userpics.find(peer); i != end(_userpics)) {
userpic = i->second;
} else {
userpic = Ui::MakeUserpicThumbnail(peer);
userpic = Ui::MakeUserpicThumbnail(peer, true);
_userpics.emplace(peer, userpic);
}
result.elements.push_back({