Commit ea53698f authored by Kim Alvefur's avatar Kim Alvefur Committed by Maxime Buquet
Browse files

Show textual presence error if available

If there's a human-readable explanation of the error, it should be there.
parent 1942e087
......@@ -1116,7 +1116,7 @@ class HandlerCore:
if not contact:
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):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment