Skip to content
Snippets Groups Projects
Commit 95cf4154 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

prevent duplicate bookmarks

parent 3cc7d9c1
No related branches found
No related tags found
No related merge requests found
......@@ -1135,7 +1135,8 @@ ConnectionCaps, ConnectionHandlersBase, ConnectionJingle):
log.warn('Invalid JID: %s, ignoring it' % conf.getAttr('jid'))
continue
if bm not in self.bookmarks:
bm_jids = [b['jid'] for b in self.bookmarks]
if bm['jid'] not in bm_jids:
self.bookmarks.append(bm)
if storage_type == 'xml':
# We got a bookmark that was not in pubsub
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment