mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
Sanitize message ID coming from Matrix
This commit is contained in:
parent
85dbadee5c
commit
ced72f4a89
1 changed files with 2 additions and 1 deletions
|
@ -2718,7 +2718,8 @@ notify_event_xmpp(
|
||||||
UserJID = jid:make(LUser, LServer, LResource),
|
UserJID = jid:make(LUser, LServer, LResource),
|
||||||
MsgID =
|
MsgID =
|
||||||
case Content of
|
case Content of
|
||||||
#{<<"net.process-one.xmpp-id">> := MID} ->
|
#{<<"net.process-one.xmpp-id">> := MID}
|
||||||
|
when is_binary(MID) ->
|
||||||
MID;
|
MID;
|
||||||
_ ->
|
_ ->
|
||||||
<<"">>
|
<<"">>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue