Fix presence subscription

Fixes #9612
This commit is contained in:
Philipp Hörist 2019-03-06 22:11:35 +01:00
parent 1827249653
commit 872ee3d675
1 changed files with 3 additions and 1 deletions

View File

@ -174,7 +174,9 @@ class Presence:
else:
# Convert the inital roster contact to a contact with resource
contact.resource = resource
event.old_show = status_strings.index(contact.show)
event.old_show = 0
if contact.show in status_strings:
event.old_show = status_strings.index(contact.show)
event.need_add_in_roster = True