{"record":{"id":"97b68d263b15ec51","repo":"RocketChat/Rocket.Chat","slug":"unrecognized-typing-scope-provided","errorCode":null,"errorMessage":"Unrecognized typing scope provided","messagePattern":"Unrecognized typing scope provided","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"apps/meteor/app/apps/server/bridges/messages.ts","lineNumber":116,"sourceCode":"\t\tawait Users.findByIds(users, { projection: { _id: 1 } }).forEach(\n\t\t\t({ _id }: { _id: string }) =>\n\t\t\t\tvoid api.broadcast('notify.ephemeralMessage', _id, room.id, {\n\t\t\t\t\t...convertedMessage,\n\t\t\t\t}),\n\t\t);\n\t}\n\n\tprotected async typing({ scope, id, username, isTyping }: ITypingDescriptor): Promise<void> {\n\t\tswitch (scope) {\n\t\t\tcase 'room':\n\t\t\t\tif (!username) {\n\t\t\t\t\tthrow new Error('Invalid username');\n\t\t\t\t}\n\n\t\t\t\tnotifications.notifyRoom(id, 'user-activity', username, isTyping ? ['user-typing'] : []);\n\t\t\t\treturn;\n\t\t\tdefault:\n\t\t\t\tthrow new Error('Unrecognized typing scope provided');\n\t\t}\n\t}\n\n\tprivate isValidReaction(reaction: Reaction): boolean {\n\t\treturn reaction.startsWith(':') && reaction.endsWith(':');\n\t}\n\n\tprotected async addReaction(messageId: string, userId: string, reaction: Reaction): Promise<void> {\n\t\tif (!this.isValidReaction(reaction)) {\n\t\t\tthrow new Error('Invalid reaction');\n\t\t}\n\n\t\treturn executeSetReaction(userId, reaction, messageId, true);\n\t}\n\n\tprotected async removeReaction(messageId: string, userId: string, reaction: Reaction): Promise<void> {\n\t\tif (!this.isValidReaction(reaction)) {\n\t\t\tthrow new Error('Invalid reaction');","sourceCodeStart":98,"sourceCodeEnd":134,"githubUrl":"https://github.com/RocketChat/Rocket.Chat/blob/b2c16d5842cbe6b69b59bdf6fc5e5f1afcd1f0b0/apps/meteor/app/apps/server/bridges/messages.ts#L98-L134","documentation":"Error \"Unrecognized typing scope provided\" thrown in RocketChat/Rocket.Chat.","triggerScenarios":"Thrown at apps/meteor/app/apps/server/bridges/messages.ts:116 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a supported typing scope such as 'room' in the ITypingDescriptor.","Check the scope value sent by the app; unknown scope values are rejected."],"exampleFix":"Restrict typing scope to known values: if (!['message', 'thread'].includes(scope)) { throw new Error('Unrecognized typing scope provided'); }","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"}