mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 07:56:03 +00:00
Open exact message on local reaction notification.
This commit is contained in:
@@ -879,11 +879,13 @@ void Manager::openNotificationMessage(
|
|||||||
not_null<History*> history,
|
not_null<History*> history,
|
||||||
MsgId messageId) {
|
MsgId messageId) {
|
||||||
const auto openExactlyMessage = [&] {
|
const auto openExactlyMessage = [&] {
|
||||||
if (history->peer->isUser() || history->peer->isChannel()) {
|
if (history->peer->isChannel()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const auto item = history->owner().message(history->peer, messageId);
|
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 false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user