fn notification_counts_future<'a>( services: &'a Services, sender_user: &'a UserId, room_id: &'a RoomId, ) -> impl Future<Output = (Option<UInt>, Option<UInt>, Result<u64>, BTreeMap<OwnedEventId, (u64, u64)>)> + Send + 'a