Show textual presence error if available
If there's a human-readable explanation of the error, it should be there.
This commit is contained in:
parent
1942e087fd
commit
ea53698fd7
1 changed files with 1 additions and 1 deletions
|
@ -1116,7 +1116,7 @@ class HandlerCore:
|
||||||
if not contact:
|
if not contact:
|
||||||
return
|
return
|
||||||
roster.modified()
|
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
|
# TODO: reset chat states status on presence error
|
||||||
|
|
||||||
def on_got_offline(self, presence):
|
def on_got_offline(self, presence):
|
||||||
|
|
Loading…
Reference in a new issue