From bb57b12329bdb48e321c9c04bc73a0a9918be2de Mon Sep 17 00:00:00 2001 From: Goffi Date: Tue, 5 Mar 2024 17:31:56 +0100 Subject: [PATCH] plugin XEP-0313: fix value used in `msg_from` when `from` is not explicitely specified. --- libervia/backend/plugins/plugin_xep_0313.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libervia/backend/plugins/plugin_xep_0313.py b/libervia/backend/plugins/plugin_xep_0313.py index 251fab34..cce1c17f 100644 --- a/libervia/backend/plugins/plugin_xep_0313.py +++ b/libervia/backend/plugins/plugin_xep_0313.py @@ -268,7 +268,7 @@ class XEP_0313(object): xml=mess_elt.toXml())) raise exceptions.DataError("Invalid element") service_jid = client.jid.userhostJID() if service is None else service - mess_from = mess_elt.getAttribute("from") or client.jid.userhostJID() + mess_from = mess_elt.getAttribute("from") or client.jid.userhost() # we check that the message has been sent by the right service # if service is None (i.e. message expected from our own server) # from can be server jid or user's bare jid