delete lxmf messages by hash as ui might not have an id yet

This commit is contained in:
liamcottle 2024-07-08 23:10:21 +12:00
parent 827b453055
commit daffc19f92
2 changed files with 8 additions and 8 deletions

View file

@ -2291,7 +2291,7 @@
}
// delete lxmf message from server
await window.axios.delete(`/api/v1/lxmf-messages/${chatItem.lxmf_message.id}`);
await window.axios.delete(`/api/v1/lxmf-messages/${chatItem.lxmf_message.hash}`);
// remove lxmf message from chat items using hash, as other pending items might not have an id yet
this.chatItems = this.chatItems.filter((item) => {