Commit 8802bc7b authored by Philipp Hörist's avatar Philipp Hörist

Bookmarks: Handle deleted and retracted events

parent 0391fb0f
......@@ -56,10 +56,18 @@ class Bookmarks:
if properties.pubsub_event.node != NS_BOOKMARKS:
return
if properties.pubsub_event.deleted or properties.pubsub_event.retracted:
return
item = properties.pubsub_event.item
if item is None:
return
bookmarks = []
storage_node = item.getTag('storage', namespace=NS_BOOKMARKS)
if storage_node is None:
return
bookmarks = []
if storage_node.getChildren():
bookmarks = self._parse_bookmarks(storage_node)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment