Selaa lähdekoodia

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

JC Brand 3 vuotta sitten
vanhempi
commit
2172409fec
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  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);