From ea53698fd756708108c16a3361ab1993574fd23f Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 3 Apr 2020 17:59:20 +0200 Subject: [PATCH] Show textual presence error if available If there's a human-readable explanation of the error, it should be there. --- poezio/core/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index 620d854c..47915008 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -1116,7 +1116,7 @@ class HandlerCore: if not contact: return roster.modified() - contact.error = presence['error']['type'] + ': ' + presence['error']['condition'] + contact.error = presence['error']['text'] or presence['error']['type'] + ': ' + presence['error']['condition'] # TODO: reset chat states status on presence error def on_got_offline(self, presence):