fix bad sync against no messages for mockroom

This commit is contained in:
bel
2020-05-03 09:49:38 -06:00
parent dca8d756cd
commit cb1a9050e8
5 changed files with 73 additions and 13 deletions

View File

@@ -3,7 +3,7 @@ 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 send(&mut self, message: String) -> Result<String, &str>;
fn room_id(&self) -> String;
fn since(&self) -> String;
}