From e6e77c77703a7898164b20e931ec6330aa72a322 Mon Sep 17 00:00:00 2001 From: Goffi Date: Mon, 2 Aug 2021 21:52:17 +0200 Subject: [PATCH] plugin XEP-0059: don't show warning message when is missing if there is not message --- sat/plugins/plugin_xep_0059.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sat/plugins/plugin_xep_0059.py b/sat/plugins/plugin_xep_0059.py index 08ad64f8..cd361582 100644 --- a/sat/plugins/plugin_xep_0059.py +++ b/sat/plugins/plugin_xep_0059.py @@ -138,7 +138,8 @@ class XEP_0059(object): ) if rsm_response.last is None: - log.warning("Can't do pagination, no \"last\" received") + if rsm_response.count: + log.warning("Can't do pagination, no \"last\" received") return None return rsm.RSMRequest(