fix: do not crash on bookmarks without a nickname
This commit is contained in:
parent
79bbbdb3e6
commit
88db537027
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue