Sanitize message ID coming from Matrix
This commit is contained in:
@@ -2718,7 +2718,8 @@ notify_event_xmpp(
|
||||
UserJID = jid:make(LUser, LServer, LResource),
|
||||
MsgID =
|
||||
case Content of
|
||||
#{<<"net.process-one.xmpp-id">> := MID} ->
|
||||
#{<<"net.process-one.xmpp-id">> := MID}
|
||||
when is_binary(MID) ->
|
||||
MID;
|
||||
_ ->
|
||||
<<"">>
|
||||
|
||||
Reference in New Issue
Block a user