simplified

This commit is contained in:
avdb13 2025-05-17 11:48:14 +00:00
parent 0e977481a1
commit f48ca403cf
7 changed files with 175 additions and 186 deletions

View file

@ -1,6 +1,6 @@
use std::sync::Arc;
use ruma::{CanonicalJsonObject, EventId, OwnedUserId, RoomId, UserId};
use ruma::{CanonicalJsonObject, EventId, RoomId, UserId};
use super::PduCount;
use crate::{service::rooms::timeline::PduId, PduEvent, Result};
@ -91,11 +91,4 @@ pub(crate) trait Data: Send + Sync {
room_id: &RoomId,
from: PduCount,
) -> Result<Box<dyn Iterator<Item = Result<(PduCount, PduEvent)>> + 'a>>;
fn increment_notification_counts(
&self,
room_id: &RoomId,
notifies: Vec<OwnedUserId>,
highlights: Vec<OwnedUserId>,
) -> Result<()>;
}