fix: do not crash on bookmarks without a nickname

This commit is contained in:
Georg Lukas 2021-11-18 10:42:09 +01:00
parent 79bbbdb3e6
commit 88db537027

View file

@ -38,7 +38,7 @@ class BookmarkJIDInput(FieldInput, Input):
jid = JID(field.jid)
except InvalidJID:
jid = JID('')
jid.resource = field.nick or ''
jid.resource = field.nick or None
self.text = jid.full
self.pos = 0
self.view_pos = 0