update mockrooms so join emits join message

This commit is contained in:
bel
2020-05-03 09:22:23 -06:00
parent 42414a0a23
commit dca8d756cd
9 changed files with 233 additions and 57 deletions

View File

@@ -1,9 +1,11 @@
use super::event;
pub trait Room {
fn rollback(&mut self, since: String);
fn sync(&mut self) -> Vec<event::Event>;
fn send(&mut self, message: String) -> Result<&str, &str>;
fn room_id(&self) -> String;
fn since(&self) -> String;
}
#[cfg(test)]