2022-09-07 13:25:51 +02:00
|
|
|
use ruma::{UserId, RoomId, serde::Raw, events::AnyStrippedStateEvent};
|
|
|
|
|
use crate::Result;
|
2022-09-06 23:15:09 +02:00
|
|
|
|
2022-10-05 15:33:57 +02:00
|
|
|
pub trait Data: Send + Sync {
|
2022-09-07 13:25:51 +02:00
|
|
|
fn mark_as_once_joined(&self, user_id: &UserId, room_id: &RoomId) -> Result<()>;
|
|
|
|
|
fn mark_as_joined(&self, user_id: &UserId, room_id: &RoomId) -> Result<()>;
|
|
|
|
|
fn mark_as_invited(&self, user_id: &UserId, room_id: &RoomId, last_state: Option<Vec<Raw<AnyStrippedStateEvent>>>) -> Result<()>;
|
|
|
|
|
fn mark_as_left(&self, user_id: &UserId, room_id: &RoomId) -> Result<()>;
|
2022-08-14 13:38:21 +02:00
|
|
|
}
|