mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-30 11:48:31 +00:00
16 lines
510 B
Rust
16 lines
510 B
Rust
use ruma::{DeviceId, RoomId, UserId};
|
|
|
|
use crate::Result;
|
|
|
|
pub(crate) trait Data: Send + Sync {
|
|
fn lazy_load_was_sent_before(
|
|
&self, user_id: &UserId, device_id: &DeviceId, room_id: &RoomId, ll_user: &UserId,
|
|
) -> Result<bool>;
|
|
|
|
fn lazy_load_confirm_delivery(
|
|
&self, user_id: &UserId, device_id: &DeviceId, room_id: &RoomId,
|
|
confirmed_user_ids: &mut dyn Iterator<Item = &UserId>,
|
|
) -> Result<()>;
|
|
|
|
fn lazy_load_reset(&self, user_id: &UserId, device_id: &DeviceId, room_id: &RoomId) -> Result<()>;
|
|
}
|