Never notify of own reactions

Stephen Paul Weber created

Change summary

src/main/java/eu/siacs/conversations/parser/MessageParser.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Detailed changes

src/main/java/eu/siacs/conversations/parser/MessageParser.java 🔗

@@ -1330,7 +1330,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");
                         }
@@ -1372,7 +1372,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");
                     }