[entities] return the entity itself from notification_references if the view uses a random message-id
Useful for entity update notifications to reference the entity creation message.
--- a/entities/adapters.py Tue Feb 17 12:35:58 2015 +0100
+++ b/entities/adapters.py Tue Feb 17 12:42:42 2015 +0100
@@ -78,6 +78,8 @@
itree = self.entity.cw_adapt_to('ITree')
if itree is not None:
return itree.path()[:-1]
+ if view.msgid_timestamp:
+ return (self.entity.eid,)
return ()