JC Brand 3 years ago
parent
commit
286ab1ad83
2 changed files with 5 additions and 1 deletions
  1. 1 0
      CHANGES.md
  2. 4 1
      src/headless/plugins/muc/utils.js

+ 1 - 0
CHANGES.md

@@ -5,6 +5,7 @@
 - #2326: 404 for asset /logo/conversejs-filled.svg
 - #2628: Open groupchats toggle emits an error
 - #2629: OMEMO button tooltip is wrong in private chat
+- #2633: Excessive logging of warning
 - #2634: Image previews not loading when not serving Converse locally
 
 ## 8.0.0 (2021-09-03)

+ 4 - 1
src/headless/plugins/muc/utils.js

@@ -186,13 +186,16 @@ export async function autoJoinRooms () {
  * @param { XMLElement } stanza
  */
 async function handleMEPNotification (stanza) {
-    const msgid = stanza.getAttribute('id');
     const from = stanza.getAttribute('from');
+    if (u.isSameBareJID(from, _converse.bare_jid)) {
+        return;
+    }
     const room = await api.rooms.get(from);
     if (!room) {
         log.warn(`Received a MEP message for a non-existent room: ${from}`);
         return;
     }
+    const msgid = stanza.getAttribute('id');
     if (room.messages.findWhere({ msgid })) {
         // We already handled this stanza before
         return;