refac
This commit is contained in:
1 parent
bb3526f4e4
commit
5b026b2a3e
5 files changed
+22
-6
No files matched your search
@@ -50,6 +50,7 @@
|
||||
let showDeleteConfirmDialog = false;
|
||||
|
||||
export let onUpdate = () => {};
|
||||
export let onDelete: (id: string) => void = () => {};
|
||||
|
||||
export let loadHandler: null | Function = null;
|
||||
export let unarchiveHandler: null | Function = null;
|
||||
@@ -69,6 +70,9 @@
|
||||
toast.error(`${error}`);
|
||||
});
|
||||
|
||||
if (res) {
|
||||
onDelete(chatId);
|
||||
}
|
||||
onUpdate();
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in new issue
Block a user