]> granicus.if.org Git - ejabberd/commitdiff
Add information about real sender to mucsub message meta
authorPaweł Chmielowski <pchmielowski@process-one.net>
Thu, 6 Sep 2018 10:40:05 +0000 (12:40 +0200)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Thu, 6 Sep 2018 11:36:59 +0000 (13:36 +0200)
src/mod_muc_room.erl

index 136637ee3d51eff5d8a8a7e368f923896b2b7948..a8811f58a0ee7c7d7d82ea0224ea26fc2a1c82d8 100644 (file)
@@ -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,