Explorar o código

muc: the original stanza must be emitted

Otherwise other plugins don't know whether the message was forwarded or not.
JC Brand %!s(int64=8) %!d(string=hai) anos
pai
achega
e1e20690f0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/converse-muc.js

+ 1 - 1
src/converse-muc.js

@@ -1900,7 +1900,7 @@
                     this.model.createMessage(message, delay, original_stanza);
                     if (sender !== this.model.get('nick')) {
                         // We only emit an event if it's not our own message
-                        _converse.emit('message', message);
+                        _converse.emit('message', original_stanza);
                     }
                     return true;
                 }