aboutsummaryrefslogtreecommitdiffstats
path: root/filamento/src/logic/process_stanza.rs
diff options
context:
space:
mode:
Diffstat (limited to 'filamento/src/logic/process_stanza.rs')
-rw-r--r--filamento/src/logic/process_stanza.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/filamento/src/logic/process_stanza.rs b/filamento/src/logic/process_stanza.rs
index 660da16..b1bc830 100644
--- a/filamento/src/logic/process_stanza.rs
+++ b/filamento/src/logic/process_stanza.rs
@@ -69,8 +69,7 @@ pub async fn recv_message(
logic
.db()
.create_message_with_user_resource_and_chat(message.clone(), from.clone())
- .await
- .map_err(|e| DatabaseError(e.into()))?;
+ .await?;
message.from = message.from.as_bare();
from = from.as_bare();
Ok(Some(UpdateMessage::Message { to: from, message }))