plugin XEP-215: Use bare JID instead of raising an exception on full jid.

This commit is contained in:
Goffi 2026-05-03 16:48:30 +02:00
commit d2fd11df13

View file

@ -172,9 +172,7 @@ class XEP_0215:
"""
if entity is None:
entity = client.server_jid
if entity.resource:
raise exceptions.DataError("A bare jid was expected for target entity")
entity = entity.userhostJID()
try:
cached_services = client._xep_0215_services[entity]