diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-06-03 12:29:53 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-06-03 12:29:53 +0200 |
commit | ae48735f2cde8ca4ac833ebcbeeee5b899adc645 (patch) | |
tree | a5943567b45f016f88c4027a7081e565fd73baad /program/js | |
parent | d28daec9181534aea9520906bd3b660dad3f2bb0 (diff) |
Fixed set_unread_message() in multifolder mode
Diffstat (limited to 'program/js')
-rw-r--r-- | program/js/app.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js index 124079938..11204ffb2 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -2139,11 +2139,13 @@ function rcube_webmail() if (!self || !self.message_list) return; - self.set_message(id, 'unread', false); + // this may fail in multifolder mode + if (self.set_message(id, 'unread', false) === false) + self.set_message(id + '-' + folder, 'unread', false); if (self.env.unread_counts[folder] > 0) { self.env.unread_counts[folder] -= 1; - self.set_unread_count(folder, self.env.unread_counts[folder], folder == 'INBOX'); + self.set_unread_count(folder, self.env.unread_counts[folder], folder == 'INBOX' && !self.is_multifolder_listing()); } }; |