Rank 3: Container
Hello everyone,
I am trying to create room document with permissions.
As i understand i cannot authorized to give to any permissions for any other user due to response.
First idea coming to my mind is : Should i create a team for every private room with 2 users ?
How can i handle with this situation ?
Why i am doing this : Because i want to be get notified another user by listening realtime and see that room as well.
createRoom(data: any): Promise<any> { console.log(data); return this.api.createDocument( environment.appwrite.ROOMS_COLLECTION, ID.unique(), data, [ Permission.read(Role.user(data.users[0])), Permission.read(Role.user(data.users[1])), ] ); }Response :