Description:
In the app engine, there is no way to tell what users are in a room when the room is first created, because the executePostRoomUser function is not executed, and the executePostRoomCreate IRoom object doesn't have any "userIds" property.
Steps to reproduce:
- Add the following handlers in the app engine:
public executePostRoomUserJoined(context: IRoomUserJoinedContext, read: IRead, http: IHttp, persistence: IPersistence, modify: IModify): Promise<void> {
this.getLogger().debug(context);
return Promise.resolve(undefined);
}
public executePostRoomCreate(room: IRoom, read: IRead, http: IHttp, persistence: IPersistence, modify: IModify): Promise<void> {
this.getLogger().debug(room);
return Promise.resolve(undefined);
}
- Create a channel with an initial set of users
- Check the app log and notice that the "room" object logged in executePostRoomCreate has no users, and there is no "executePostRoomUserJoined" log message.
Expected behavior:
Either one of the following:
- the executePostRoomUserJoined function will execute after the room is created with multiple users
- the executePostRoomCreate function will execute and contain the "userIds" property in the room object
Actual behavior:
the "room" object logged in executePostRoomCreate has no users, and there is no "executePostRoomUserJoined" log message.
Server Setup Information:
- Version of Rocket.Chat Server: Version 7.2.1
- License Type: Starter
- Number of Users: 2
- Operating System: WSL
- Deployment Method: docker compose
- Number of Running Instances: 1
- DB Replicaset Oplog:
- NodeJS Version:
- MongoDB Version:
Client Setup Information
- Desktop App or Browser Version:
- Operating System:
Additional context
I want to be able to know what users are in a room when it is first created.
Description:
In the app engine, there is no way to tell what users are in a room when the room is first created, because the executePostRoomUser function is not executed, and the executePostRoomCreate IRoom object doesn't have any "userIds" property.
Steps to reproduce:
Expected behavior:
Either one of the following:
Actual behavior:
the "room" object logged in executePostRoomCreate has no users, and there is no "executePostRoomUserJoined" log message.
Server Setup Information:
Client Setup Information
Additional context
I want to be able to know what users are in a room when it is first created.