changeset 44:ad1dd8c09288

update message views after updating the message store
author Myk Melez <myk@mozilla.org>
date Thu, 01 May 2008 11:55:28 -0700
parents 6a876da36c80
children a3811857c5dc
files extension/modules/service.js
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/extension/modules/service.js	Wed Apr 30 18:11:06 2008 -0700
+++ b/extension/modules/service.js	Thu May 01 11:55:28 2008 -0700
@@ -35,6 +35,15 @@
     return this._prefSvc;
   },
 
+  // Observer Service
+  get _obsSvc() {
+    let obsSvc = Cc["@mozilla.org/observer-service;1"].
+                 getService(Ci.nsIObserverService);
+    delete this._obsSvc;
+    this._obsSvc = obsSvc;
+    return this._obsSvc;
+  },
+
   get _dirSvc() {
     let dirSvc = Cc["@mozilla.org/file/directory_service;1"].
                  getService(Ci.nsIProperties);
@@ -202,6 +211,8 @@
       // FIXME: implement the approach described above.
       feed.resetLastRefreshed();
     }
+
+    this._obsSvc.notifyObservers(null, "messages:changed", null);
   },
 
   /**