Browse Source

* Fixed admins in DMs

master
vvandenb 2 years ago
parent
commit
c58388a2d7
  1. 2
      back/src/chat/chat.service.ts

2
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

Loading…
Cancel
Save