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