mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Tag private MUC messages with muc#user namespace
Make it possible for clients to identify private MUC messages. One use case would be to filter out undesired carbon copies of those.
This commit is contained in:
parent
fa99519f8b
commit
7297b23508
@ -570,7 +570,10 @@ normal_state({route, From, ToNick,
|
||||
FromNickJID =
|
||||
jlib:jid_replace_resource(StateData#state.jid,
|
||||
FromNick),
|
||||
[ejabberd_router:route(FromNickJID, ToJID, Packet)
|
||||
X = #xmlel{name = <<"x">>,
|
||||
attrs = [{<<"xmlns">>, ?NS_MUC_USER}]},
|
||||
PrivMsg = xml:append_subtags(Packet, [X]),
|
||||
[ejabberd_router:route(FromNickJID, ToJID, PrivMsg)
|
||||
|| ToJID <- ToJIDs];
|
||||
true ->
|
||||
ErrText =
|
||||
|
Loading…
Reference in New Issue
Block a user