Set from_real_jid
on the message when its occupant is attached.
This commit is contained in:
parent
d22c063ae5
commit
2172409fec
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user