From aeb561bd4102220c4b16f727d90f757c4b24554c Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 7 Dec 2019 18:10:11 +0100 Subject: [PATCH] Remove conversation: Can delete completely a conversation --- src/helpers/ConversationsHelper.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/helpers/ConversationsHelper.ts b/src/helpers/ConversationsHelper.ts index c5f1d05..07cda5c 100644 --- a/src/helpers/ConversationsHelper.ts +++ b/src/helpers/ConversationsHelper.ts @@ -487,10 +487,14 @@ export class ConversationsHelper { } // Delete all the members of the conversation - // TODO + await DatabaseHelper.DeleteRows(USERS_TABLE, { + conv_id: convID + }); // Delete the conversation entry itself - // TODO + await DatabaseHelper.DeleteRows(LIST_TABLE, { + id: convID + }); } /**