diff --git a/app/apps/server/bridges/messages.ts b/app/apps/server/bridges/messages.ts index 3a1b59281043f..b0c96e2392677 100644 --- a/app/apps/server/bridges/messages.ts +++ b/app/apps/server/bridges/messages.ts @@ -50,6 +50,11 @@ export class AppMessageBridge extends MessageBridge { updateMessage(msg, editor); } + protected async delete(messageId: string, appId: string): Promise { + this.orch.debugLog(`The App ${appId} is deleting a message.`); + Messages.removeById(messageId); + } + protected async notifyUser(user: IUser, message: IMessage, appId: string): Promise { this.orch.debugLog(`The App ${appId} is notifying a user.`); diff --git a/packages/rocketchat-i18n/i18n/en.i18n.json b/packages/rocketchat-i18n/i18n/en.i18n.json index 09d371da645d9..7d20a58599510 100644 --- a/packages/rocketchat-i18n/i18n/en.i18n.json +++ b/packages/rocketchat-i18n/i18n/en.i18n.json @@ -515,6 +515,7 @@ "Apps_Permissions_server-setting_write": "Modify settings in this server", "Apps_Permissions_room_read": "Access room information", "Apps_Permissions_room_write": "Create and modify rooms", + "Apps_Permissions_message_delete": "Delete messages", "Apps_Permissions_message_read": "Access messages", "Apps_Permissions_message_write": "Send and modify messages", "Apps_Permissions_livechat-status_read": "Access Livechat status information",