fn merge_unread_notifications( highlight_count: Option<UInt>, notification_count: Option<UInt>, thread_counts: &BTreeMap<OwnedEventId, (u64, u64)>, ) -> UnreadNotificationsCount