Flush the receiver's sidebar when sending a notification
authorSverre Rabbelier <srabbelier@gmail.com>
Sat, 28 Feb 2009 12:11:20 +0000
changeset 1556 c81109a8a1a1
parent 1555 cba45797f4b9
child 1557 9e32e6258319
Flush the receiver's sidebar when sending a notification Patch by: Sverre Rabbelier
app/soc/logic/models/notification.py
--- a/app/soc/logic/models/notification.py	Sat Feb 28 12:10:49 2009 +0000
+++ b/app/soc/logic/models/notification.py	Sat Feb 28 12:11:20 2009 +0000
@@ -58,6 +58,7 @@
       # there is only one unread notification so send out an email
       notifications.sendNewNotificationMessage(entity)
 
+    sidebar.flush(entity.scope.account)
     super(Logic, self)._onCreate(entity)
 
   def _updateField(self, entity, entity_properties, name):