Skip to content

Commit

Permalink
feat: add composerActions for chat rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Sep 17, 2023
1 parent f098db7 commit d906097
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion install/package.json
Expand Up @@ -95,7 +95,7 @@
"nodebb-plugin-2factor": "7.2.2",
"nodebb-plugin-composer-default": "10.2.23",
"nodebb-plugin-dbsearch": "6.2.2",
"nodebb-plugin-emoji": "5.1.5",
"nodebb-plugin-emoji": "5.1.6",
"nodebb-plugin-emoji-android": "4.0.0",
"nodebb-plugin-markdown": "12.2.4",
"nodebb-plugin-mentions": "4.3.5",
Expand Down
3 changes: 3 additions & 0 deletions public/openapi/read/user/userslug/chats/roomid.yaml
Expand Up @@ -496,4 +496,7 @@ get:
type: string
bodyClasses:
type: array
composerActions:
type: array
description: A list of buttons that are added next to the send message button by plugins
- $ref: ../../../../components/schemas/CommonProps.yaml#/CommonProps
1 change: 1 addition & 0 deletions src/messaging/rooms.js
Expand Up @@ -534,6 +534,7 @@ module.exports = function (Messaging) {
room.isAdmin = isAdmin;
room.notificationOptions = notifOptions.options;
room.notificationOptionsIcon = notifOptions.selectedIcon;
room.composerActions = [];

const payload = await plugins.hooks.fire('filter:messaging.loadRoom', { uid, data, room });
return payload.room;
Expand Down

0 comments on commit d906097

Please sign in to comment.