From ea52ebe434accf092007a1a2fec6b0b999244c8a Mon Sep 17 00:00:00 2001 From: Goffi Date: Tue, 17 Mar 2026 16:08:37 +0100 Subject: [PATCH] plugin (XEP-0059): fix `max` handling: since the move to the new model, the `_` suffix must not be used any more with `max`. --- libervia/backend/plugins/plugin_xep_0059.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libervia/backend/plugins/plugin_xep_0059.py b/libervia/backend/plugins/plugin_xep_0059.py index cf6c0a3d..569722ea 100644 --- a/libervia/backend/plugins/plugin_xep_0059.py +++ b/libervia/backend/plugins/plugin_xep_0059.py @@ -196,8 +196,7 @@ class XEP_0059: rsm_args = {} for arg in ("max", "after", "before", "index"): try: - argname = "max_" if arg == "max" else arg - rsm_args[argname] = extra.pop(f"{RSM_PREFIX}{arg}") + rsm_args[arg] = extra.pop(f"{RSM_PREFIX}{arg}") except KeyError: continue