{"record":{"id":"e5ffd51d2380ef17","repo":"RocketChat/Rocket.Chat","slug":"room-roomdata-id-is-not-a-livechat-room","errorCode":null,"errorMessage":"Room ${roomData._id} is not a livechat room","messagePattern":"Room (.+?) is not a livechat room","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"apps/meteor/app/apps/server/bridges/listeners.ts","lineNumber":517,"sourceCode":"\t\t\t\tconst department = await this.orch.getConverters().get('departments').convertDepartment(departmentData);\n\n\t\t\t\tif (!department) {\n\t\t\t\t\tthrow new Error(`Department ${departmentData._id} not found`);\n\t\t\t\t}\n\n\t\t\t\treturn this.orch.getManager().getListenerManager().executeListener(args.event, { department });\n\t\t\t}\n\n\t\t\tdefault:\n\t\t\t\tconst [roomData] = args.payload;\n\t\t\t\tconst room = await this.orch.getConverters().get('rooms').convertRoom(roomData);\n\n\t\t\t\tif (!room) {\n\t\t\t\t\tthrow new Error(`Room ${roomData._id} not found`);\n\t\t\t\t}\n\n\t\t\t\tif (!isLivechatRoom(room)) {\n\t\t\t\t\tthrow new Error(`Room ${roomData._id} is not a livechat room`);\n\t\t\t\t}\n\n\t\t\t\treturn this.orch.getManager().getListenerManager().executeListener(args.event, room);\n\t\t}\n\t}\n\n\tasync userEvent(args: HandleUserEvent): Promise<unknown> {\n\t\tswitch (args.event) {\n\t\t\tcase AppInterface.IPostUserLoggedIn:\n\t\t\tcase AppInterface.IPostUserLoggedOut: {\n\t\t\t\tconst [loggedInUser] = args.payload;\n\t\t\t\tconst context = this.orch.getConverters().get('users').convertToApp(loggedInUser);\n\t\t\t\treturn this.orch.getManager().getListenerManager().executeListener(args.event, context);\n\t\t\t}\n\t\t\tcase AppInterface.IPostUserStatusChanged: {\n\t\t\t\tconst [statusData] = args.payload;\n\t\t\t\tconst { currentStatus, previousStatus } = statusData;\n\t\t\t\tconst context = {","sourceCodeStart":499,"sourceCodeEnd":535,"githubUrl":"https://github.com/RocketChat/Rocket.Chat/blob/b2c16d5842cbe6b69b59bdf6fc5e5f1afcd1f0b0/apps/meteor/app/apps/server/bridges/listeners.ts#L499-L535","documentation":"Error \"Room ${roomData._id} is not a livechat room\" thrown in RocketChat/Rocket.Chat.","triggerScenarios":"Thrown at apps/meteor/app/apps/server/bridges/listeners.ts:517 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Only fire livechat room events for rooms of type 'l' (livechat); check the room's t field before dispatching.","Verify the correct room id was passed; the resolved room belongs to another room type (channel, group, or DM)."],"exampleFix":"Confirm the room type is livechat before proceeding: if (room.t !== 'l') { throw new Error(`Room ${roomData._id} is not a livechat room`); }","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b2c16d5842cbe6b69b59bdf6fc5e5f1afcd1f0b0","analyzedAt":"2026-08-18T15:26:39.429Z","contentChangedAt":"2026-08-18T15:26:39.429Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}