Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
poezio
poezio
Commits
ea53698f
Commit
ea53698f
authored
Apr 03, 2020
by
Kim Alvefur
Committed by
Maxime Buquet
Apr 03, 2020
Browse files
Show textual presence error if available
If there's a human-readable explanation of the error, it should be there.
parent
1942e087
Changes
1
Hide whitespace changes
Inline
Side-by-side
poezio/core/handlers.py
View file @
ea53698f
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment