mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Add information about real sender to mucsub message meta
This commit is contained in:
parent
90b22da880
commit
79c511a441
@ -787,7 +787,8 @@ process_groupchat_message(#message{from = From, lang = Lang} = Packet, StateData
|
|||||||
drop ->
|
drop ->
|
||||||
{next_state, normal_state, StateData};
|
{next_state, normal_state, StateData};
|
||||||
NewPacket1 ->
|
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;
|
Node = if Subject == [] -> ?NS_MUCSUB_NODES_MESSAGES;
|
||||||
true -> ?NS_MUCSUB_NODES_SUBJECT
|
true -> ?NS_MUCSUB_NODES_SUBJECT
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user