Start work on message events

This commit is contained in:
timokoesters 2020-03-30 00:10:15 +02:00
parent 533260edd8
commit b508b4d1e7
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
3 changed files with 25 additions and 27 deletions

View file

@ -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!();
}
}