Start work on message events
This commit is contained in:
parent
533260edd8
commit
b508b4d1e7
3 changed files with 25 additions and 27 deletions
|
@ -1,7 +1,8 @@
|
|||
use crate::utils;
|
||||
use directories::ProjectDirs;
|
||||
use ruma_events::collections::all::RoomEvent;
|
||||
use ruma_identifiers::UserId;
|
||||
use log::debug;
|
||||
use ruma_events::collections::all::Event;
|
||||
use ruma_identifiers::{EventId, RoomId, UserId};
|
||||
use std::convert::TryInto;
|
||||
|
||||
const USERID_PASSWORD: &str = "userid_password";
|
||||
|
@ -126,7 +127,8 @@ impl Data {
|
|||
}
|
||||
|
||||
/// Create a new room event.
|
||||
pub fn room_event_add(&self, _room_event: &RoomEvent) {
|
||||
pub fn event_add(&self, event: &Event, room_id: &RoomId, event_id: &EventId) {
|
||||
debug!("{}", serde_json::to_string(event).unwrap());
|
||||
todo!();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue