mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Open exact message on local reaction notification.
This commit is contained in:
parent
4e9a52343f
commit
54e7dfe986
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue