Webxdc delete event (#3592)

webxdc delete event
This commit is contained in:
Sebastian Klähn
2022-09-11 13:53:55 +02:00
committed by GitHub
parent 40dc182295
commit e619d9690d
9 changed files with 43 additions and 3 deletions

View File

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