1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-24 22:39:21 +00:00
This commit is contained in:
Pierre HUBERT 2020-06-23 07:53:47 +02:00
parent 620beb7828
commit df11a8a57d

View File

@ -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) {