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:
@@ -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;
|
||||
|
@@ -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({
|
||||
|
Reference in New Issue
Block a user