comparison libervia/backend/memory/disco.py @ 4356:c9626f46b63e

plugin XEP-0059: Use Pydantic models for RSM.
author Goffi <goffi@goffi.org>
date Fri, 11 Apr 2025 18:19:28 +0200
parents 1bedcc6712e9
children
comparison
equal deleted inserted replaced
4355:01ee3b902d33 4356:c9626f46b63e
281 @param jid_(jid.JID): jid of the target, or None for profile's server 281 @param jid_(jid.JID): jid of the target, or None for profile's server
282 @param node(unicode): optional node to use for disco request 282 @param node(unicode): optional node to use for disco request
283 @param use_cache(bool): if True, use cached data if available 283 @param use_cache(bool): if True, use cached data if available
284 @return: a Deferred which fire disco.DiscoItems 284 @return: a Deferred which fire disco.DiscoItems
285 """ 285 """
286 # FIXME: RSM is not managed here
286 if jid_ is None: 287 if jid_ is None:
287 jid_ = client.server_jid 288 jid_ = client.server_jid
288 289
289 if jid_ == client.server_jid and not node: 290 if jid_ == client.server_jid and not node:
290 # we cache items only for our own server and if node is not set 291 # we cache items only for our own server and if node is not set