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