Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
discodamone opened this issue Jan 22, 2025 · 1 comment
Labels
Tasked Added to the internal issue tracking

Comments

@discodamone
Copy link

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.

@discodamone discodamone changed the title No way to see what users are in a room when it is first created App engine: No way to see what users are in a room when it is first created Jan 22, 2025
@discodamone discodamone changed the title App engine: No way to see what users are in a room when it is first created Apps engine: No way to see what users are in a room when it is first created Jan 22, 2025
@reetp
Copy link

reetp commented Jan 22, 2025

I'll refer this to the team for comments.

There are various things going on behind the scenes so it may take several days for a respobse. Plesse be patient.

@reetp reetp added the Tasked Added to the internal issue tracking label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tasked Added to the internal issue tracking
Projects
None yet
Development

No branches or pull requests

2 participants