Fix logic.
authorMichael M Slusarz <slusarz@curecanti.org>
Sat, 11 Apr 2009 22:13:10 +0000 (16:13 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Sat, 11 Apr 2009 22:13:10 +0000 (16:13 -0600)
imp/js/src/DimpBase.js

index d20cc60..c845029 100644 (file)
@@ -922,7 +922,7 @@ var DimpBase = {
                   // There is a chance that the message may have been marked
                   // as unseen since first being viewed. If so, we need to
                   // explicitly flag as seen here.
-                if (this.hasFlag('\\seen', data)) {
+                if (!this.hasFlag('\\seen', data)) {
                     this.flag('\\seen', true);
                 }
                 return this._loadPreviewCallback(this.ppcache[pp_uid]);