Remove room state mgmt; let matrix SDK do it on-demand instead. #71

Manually merged
projectmoon merged 3 commits from state-revamp into master 2021-05-25 14:02:29 +00:00
2 changed files with 11 additions and 1 deletions
Showing only changes of commit 97be5d5ccb - Show all commits

View File

@ -0,0 +1,10 @@
use barrel::backend::Sqlite;
use barrel::{types, Migration};
pub fn migration() -> String {
let mut m = Migration::new();
m.drop_table_if_exists("room_info");
m.drop_table_if_exists("room_users");
m.make::<Sqlite>()
}

View File

@ -1,6 +1,6 @@
use futures::stream::{self, StreamExt, TryStreamExt};
use log::error;
use matrix_sdk::{events::room::message::NoticeMessageEventContent, room::Joined, StoreError};
use matrix_sdk::{events::room::message::NoticeMessageEventContent, room::Joined};
use matrix_sdk::{
events::room::message::{InReplyTo, Relation},
events::room::message::{MessageEventContent, MessageType},