mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-27 20:36:27 -08:00
getUnreadNotificationCount() aggregates both the room-level counter and all thread notification counters. The stale-clamping logic checked whether the latest main-timeline event was already read and, if so, set total = 0 — this inadvertently wiped out any thread reply counts that were included in the combined total. Fix by reading getRoomUnreadNotificationCount() (main-timeline only) to determine the stale portion, then subtracting only that from total rather than zeroing the whole value. Thread highlight and total counts are preserved.