messing around with arcs

This commit is contained in:
Timo Kösters authored and Nyaaori committed 2022-10-10 14:02:00 +02:00
1 parent face766e0f
commit cff52d7ebb
77 files changed
+598 -434

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
use ruma::{UserId, RoomId, serde::Raw, events::AnyStrippedStateEvent};
use crate::Result;
pub trait Data {
pub trait Data: Send + Sync {
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<()>;