Notifications: Prevent notifications for reactions on posts (#1830)
This commit is contained in:
parent
c3e2079b69
commit
289eb692fe
@ -386,6 +386,9 @@ export async function notifyAboutMessage({
|
|||||||
if (!message.id) return;
|
if (!message.id) return;
|
||||||
|
|
||||||
const activeReaction = getMessageRecentReaction(message);
|
const activeReaction = getMessageRecentReaction(message);
|
||||||
|
// Do not notify about reactions on messages that are not outgoing
|
||||||
|
if (isReaction && !activeReaction) return;
|
||||||
|
|
||||||
const icon = await getAvatar(chat);
|
const icon = await getAvatar(chat);
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user