plugin (XEP-0059): fix max handling:

since the move to the new model, the `_` suffix must not be used any more with `max`.
This commit is contained in:
Goffi 2026-03-17 16:08:37 +01:00
commit ea52ebe434

View file

@ -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