Parcourir la source

Set `from_real_jid` on the message when its occupant is attached.

JC Brand il y a 3 ans
Parent
commit
2172409fec
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      src/headless/plugins/muc/message.js

+ 4 - 0
src/headless/plugins/muc/message.js

@@ -87,6 +87,10 @@ const ChatRoomMessageMixin = {
         }
 
         this.occupant = occupant;
+        if (occupant.get('jid')) {
+            this.save('from_real_jid', occupant.get('jid'));
+        }
+
         this.trigger('occupantAdded');
         this.listenTo(this.occupant, 'destroy', this.onOccupantRemoved);
         this.stopListening(chatbox.occupants, 'add', this.onOccupantAdded);