typo + only send for webxdcs

This commit is contained in:
Sebastian Klähn
2022-09-11 09:39:56 +02:00
parent 2e2fa95298
commit 70979c55fa
5 changed files with 11 additions and 9 deletions

View File

@@ -1237,7 +1237,9 @@ pub async fn delete_msgs(context: &Context, msg_ids: &[MsgId]) -> Result<()> {
.await
.with_context(|| format!("Unable to trash message {}", msg_id))?;
context.emit_event(EventType::WebXdInstanceDeleted { msg_id: *msg_id });
if msg.viewtype == Viewtype::Webxdc {
context.emit_event(EventType::WebxdcInstanceDeleted { msg_id: *msg_id });
}
context
.sql