From df11a8a57d03dd1fba7dc044fe41ced4f1841a2a Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 23 Jun 2020 07:53:47 +0200 Subject: [PATCH] Fix typo --- src/helpers/ConversationsHelper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/ConversationsHelper.ts b/src/helpers/ConversationsHelper.ts index 634f96e..02c3aff 100644 --- a/src/helpers/ConversationsHelper.ts +++ b/src/helpers/ConversationsHelper.ts @@ -673,7 +673,7 @@ export class ConversationsHelper { public static async RemoveUserFromConversation(userID: number, convID: number) { // Check whether the user is the owner of the conversation or not if(await this.IsUserModerator(userID, convID)) - await this.DeleteConversations(convID); + await this.DeleteConversation(convID); else // Only delete the messages & membership of teh user @@ -687,7 +687,7 @@ export class ConversationsHelper { * * @param convID The ID of the conversation to delete */ - private static async DeleteConversations(convID: number) { + private static async DeleteConversation(convID: number) { // Get & delete all the messages of the conversations const messages = await this.GetNewMessages(convID, 0); for (const message of messages) {