Toggle posts only & mark all mail as read.

This commit is contained in:
Thomas Mathews 2023-01-24 10:46:44 -08:00
parent 83931e0085
commit 062ddda3d9
10 changed files with 83 additions and 22 deletions

View file

@ -141,6 +141,9 @@ function update_notifications(model) {
//update_favicon(has_notes ? "img/damus_notif.svg" : "img/damus.svg");
update_notification_markers(count, "activity");
update_notification_markers(dm_count, "dm");
// slight hack :)
find_node("#header-tools button[action='mark-all-read']")
.disabled = dm_count == 0;
}
async function get_pubkey(use_prompt=true) {