From c58388a2d70dcc2b08b5b0bce604bad75a1a49dd Mon Sep 17 00:00:00 2001 From: vvandenb Date: Fri, 24 Mar 2023 10:03:44 +0100 Subject: [PATCH] * Fixed admins in DMs --- back/src/chat/chat.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/src/chat/chat.service.ts b/back/src/chat/chat.service.ts index 86971a7..ffcac7e 100644 --- a/back/src/chat/chat.service.ts +++ b/back/src/chat/chat.service.ts @@ -70,7 +70,7 @@ export class ChatService { newDM.password = '' newDM.owner = user newDM.users = [user, otherUser] - newDM.admins = [] + newDM.admins = [user] newDM.name = `${user.ftId}&${otherUser.ftId}` newDM.isDM = true return newDM