2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Don't open stories on saved messages click.

This commit is contained in:
John Preston
2023-07-20 13:55:18 +04:00
parent 150cbe2866
commit d7d493e0bf

View File

@@ -528,7 +528,9 @@ void Widget::chosenRow(const ChosenRow &row) {
const auto peer = history->peer;
if (const auto user = history->peer->asUser()) {
if (row.message.fullId.msg == ShowAtUnreadMsgId) {
if (row.userpicClick && user->hasActiveStories()) {
if (row.userpicClick
&& user->hasActiveStories()
&& !user->isSelf()) {
controller()->openPeerStories(user->id);
return;
}