Never notify of own reactions

(cherry picked from commit 24822e9a5820bb2ed498d3ecaebc51593507874e)
This commit is contained in:
Stephen Paul Weber 2024-11-28 22:48:56 -05:00 committed by Arne
parent e6a5bf1f95
commit 4d0746a594

View file

@ -1459,7 +1459,7 @@ public class MessageParser extends AbstractParser implements Consumer<im.convers
message.getRemoteMsgId());
message.setReactions(combinedReactions);
mXmppConnectionService.updateMessage(message, false);
if (!isCarbon && !packet.fromAccount(account)) mXmppConnectionService.getNotificationService().push(message, counterpart, occupantId, newReactions);
if (status < Message.STATUS_SEND) mXmppConnectionService.getNotificationService().push(message, counterpart, occupantId, newReactions);
} else {
Log.d(Config.LOGTAG, "message with id " + reactingTo + " not found");
}
@ -1501,7 +1501,7 @@ public class MessageParser extends AbstractParser implements Consumer<im.convers
message.getRemoteMsgId());
message.setReactions(combinedReactions);
mXmppConnectionService.updateMessage(message, false);
if (!isCarbon && !packet.fromAccount(account)) mXmppConnectionService.getNotificationService().push(message, counterpart, null, newReactions);
if (status < Message.STATUS_SEND) mXmppConnectionService.getNotificationService().push(message, counterpart, null, newReactions);
} else {
Log.d(Config.LOGTAG, "message with id " + reactingTo + " not found");
}