From: Paweł Chmielowski Date: Thu, 6 Sep 2018 10:40:05 +0000 (+0200) Subject: Add information about real sender to mucsub message meta X-Git-Tag: 18.09~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79c511a441d49ff97fb3b33cd003b04643df4683;p=ejabberd Add information about real sender to mucsub message meta --- diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index 136637ee3..a8811f58a 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -787,7 +787,8 @@ process_groupchat_message(#message{from = From, lang = Lang} = Packet, StateData drop -> {next_state, normal_state, StateData}; NewPacket1 -> - NewPacket = xmpp:remove_subtag(NewPacket1, #nick{}), + NewPacket = xmpp:put_meta(xmpp:remove_subtag(NewPacket1, #nick{}), + muc_sender_real_jid, From), Node = if Subject == [] -> ?NS_MUCSUB_NODES_MESSAGES; true -> ?NS_MUCSUB_NODES_SUBJECT end,