summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-04-03 17:59:20 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2020-04-03 18:17:07 +0200
commitea53698fd756708108c16a3361ab1993574fd23f (patch)
treef1dc6367744cda433641dd7f700605686a99bbe6
parent1942e087fd1147f1fa34e32667244ceea654899b (diff)
downloadpoezio-ea53698fd756708108c16a3361ab1993574fd23f.tar.gz
poezio-ea53698fd756708108c16a3361ab1993574fd23f.tar.bz2
poezio-ea53698fd756708108c16a3361ab1993574fd23f.tar.xz
poezio-ea53698fd756708108c16a3361ab1993574fd23f.zip
Show textual presence error if available
If there's a human-readable explanation of the error, it should be there.
-rw-r--r--poezio/core/handlers.py2
1 files changed, 1 insertions, 1 deletions
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):