mirror of
https://github.com/RetroShare/RSNewWebUI.git
synced 2026-09-13 18:45:49 +05:00
markReadLocally() clears the whole 0xf0 nibble, but RS_MSG_TRASH is 0x20 and lives inside it (rsmail.h). Opening a message from the Trash therefore cleared its trash flag as well, and the row showed as an ordinary read mail until the next load. Only the two unread bits are cleared now. The badge itself is read from the navigation view, so unreadCount() ran a full pass over the inbox on every redraw -- once for the rail and twice more for the bottom bar, which asks for the value twice per item. The count is kept instead, recomputed when the inbox changes: after a load, and after a message is marked read. |
||
|---|---|---|
| .. | ||
| mail_attachment.js | ||
| mail_compose.js | ||
| mail_draftbox.js | ||
| mail_identity_tooltip.js | ||
| mail_important.js | ||
| mail_inbox.js | ||
| mail_later.js | ||
| mail_outbox.js | ||
| mail_personal.js | ||
| mail_resolver.js | ||
| mail_sentbox.js | ||
| mail_spam.js | ||
| mail_starred.js | ||
| mail_system.js | ||
| mail_todo.js | ||
| mail_trashbox.js | ||
| mail_util.js | ||
| mail_work.js | ||