Open exact message on local reaction notification.

This commit is contained in:
John Preston 2022-01-28 17:17:29 +03:00
parent 4e9a52343f
commit 54e7dfe986

View file

@ -879,11 +879,13 @@ void Manager::openNotificationMessage(
not_null<History*> history,
MsgId messageId) {
const auto openExactlyMessage = [&] {
if (history->peer->isUser() || history->peer->isChannel()) {
if (history->peer->isChannel()) {
return false;
}
const auto item = history->owner().message(history->peer, messageId);
if (!item || !item->isRegular() || !item->mentionsMe()) {
if (!item
|| !item->isRegular()
|| (!item->out() && !item->mentionsMe())) {
return false;
}
return true;