Skip to content

Apps engine: No way to see what users are in a room when it is first created #35000

@discodamone

Description

@discodamone

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:

  1. 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);
    }
  1. Create a channel with an initial set of users
  2. 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:

  1. the executePostRoomUserJoined function will execute after the room is created with multiple users
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: RequestRequested FeatureplannedPlanned feature being handled by internal backlog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions