Sanitize message ID coming from Matrix

This commit is contained in:
Alexey Shchepin
2025-03-25 17:42:31 +03:00
parent 85dbadee5c
commit ced72f4a89
+2 -1
View File
@@ -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;
_ ->
<<"">>