Resultify update_msg_state

This commit is contained in:
link2xt
2022-01-02 21:33:26 +00:00
parent 3e394f14e8
commit f63efc29bf
4 changed files with 15 additions and 9 deletions

View File

@@ -704,7 +704,7 @@ pub async fn action_exists(context: &Context, action: Action) -> Result<bool> {
}
async fn set_delivered(context: &Context, msg_id: MsgId) -> Result<()> {
message::update_msg_state(context, msg_id, MessageState::OutDelivered).await;
message::update_msg_state(context, msg_id, MessageState::OutDelivered).await?;
let chat_id: ChatId = context
.sql
.query_get_value("SELECT chat_id FROM msgs WHERE id=?", paramsv![msg_id])