Read unread and mute state from Messenger's database instead of the DOM
Facebook Messenger on your desktop, without the Facebook clutter
Brought to you by:
kristoffer-r
Originally created by: kristofferR
Unread and mute state is inferred from rendering:
getComputedStyle(span).fontWeight (unread-badge.ts:67).lib/mute.ts:12-30).Both break on new locales, theme or markup changes, and on rows that are not rendered.
LSDatabaseSingleton + ReQL, already imported in notification-names.ts (github.com)).MWPIsThreadUnread.isThreadUnreadForViewer(thread) over the threads table. Mute: thread.muteExpireTimeMs (in the future, or the "forever" sentinel).15-unread-badge.js:10-45; 14-notifications.js:239-270), not on a timer.Ref [#253]. Shares the database helper with the Do Not Disturb and recent-threads issues.
Part of [#349].
Originally posted by: kristofferR
Landed in [#376]: unread and mute state come from Messenger's database instead of the DOM.
It is on
mainand ships in the next release.Related
Tickets:
#376Ticket changed by: kristofferR