diff --git a/config/keywords.json b/config/keywords.json index 83686e4..0696e3e 100644 --- a/config/keywords.json +++ b/config/keywords.json @@ -12,7 +12,8 @@ "meet", "upload", "login", - "send" + "send", + "buy" ], "currencies":[ "$", "£", "€", diff --git a/src/matrix.rs b/src/matrix.rs index 5d0fa33..ed0f263 100644 --- a/src/matrix.rs +++ b/src/matrix.rs @@ -34,8 +34,7 @@ pub async fn restore_session(session_file: &Path) -> anyhow::Result<(Client, Opt let client = Client::builder() .homeserver_url(client_session.homeserver) - .sled_store(client_session.db_path, Some(&client_session.passphrase)) - .unwrap() + .sled_store(client_session.db_path, Some(&client_session.passphrase))? .build() .await?; @@ -61,7 +60,7 @@ pub async fn login(data_dir: &Path, session_file: &Path) -> anyhow::Result