Set from_real_jid on the message when its occupant is attached.

This commit is contained in:
JC Brand 2022-04-26 20:37:45 +02:00
parent d22c063ae5
commit 2172409fec

View File

@ -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);