diff options
author | alecpl <alec@alec.pl> | 2008-10-08 20:39:26 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-10-08 20:39:26 +0000 |
commit | 132aae7c4ea6e392845434bfa7aff2305e4ed408 (patch) | |
tree | 2b75fcd576bedba795921a26b1a3ed1e40dea115 | |
parent | 2b4bae16a988099279b86378d05eeff6666a9423 (diff) |
- update env.messages in set_message_status() to fix some issues with messages marking/flagging
-rw-r--r-- | program/js/app.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/program/js/app.js b/program/js/app.js index 85dd42f07..549de08e1 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1580,6 +1580,8 @@ function rcube_webmail() rows[uid].forwarded = status; else if (flag == 'flagged') rows[uid].flagged = status; + + this.env.messages[uid] = rows[uid]; } // set message row status, class and icon @@ -1724,14 +1726,14 @@ function rcube_webmail() this.message_list.remove_row(id, (n == selection.length-1)); else { - rows[id].deleted = true; + this.set_message_status(id, 'deleted', true); if (this.env.read_when_deleted) - rows[id].unread = false; + this.set_message_status(id, 'unread', false); this.set_message(id); } } } - + // also send search request to get the right messages if (this.env.search_request) add_url += '&_search='+this.env.search_request; @@ -1901,11 +1903,7 @@ function rcube_webmail() { uid = a_uids[i]; if (rows[uid]) - { - rows[uid].unread = false; - rows[uid].read = true; - this.set_message(uid); - } + this.set_message(uid, 'unread', false); } }; |