mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
feat: add composerActions for chat rooms
This commit is contained in:
@@ -95,7 +95,7 @@
|
|||||||
"nodebb-plugin-2factor": "7.2.2",
|
"nodebb-plugin-2factor": "7.2.2",
|
||||||
"nodebb-plugin-composer-default": "10.2.23",
|
"nodebb-plugin-composer-default": "10.2.23",
|
||||||
"nodebb-plugin-dbsearch": "6.2.2",
|
"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-emoji-android": "4.0.0",
|
||||||
"nodebb-plugin-markdown": "12.2.4",
|
"nodebb-plugin-markdown": "12.2.4",
|
||||||
"nodebb-plugin-mentions": "4.3.5",
|
"nodebb-plugin-mentions": "4.3.5",
|
||||||
|
|||||||
@@ -496,4 +496,7 @@ get:
|
|||||||
type: string
|
type: string
|
||||||
bodyClasses:
|
bodyClasses:
|
||||||
type: array
|
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
|
- $ref: ../../../../components/schemas/CommonProps.yaml#/CommonProps
|
||||||
@@ -534,6 +534,7 @@ module.exports = function (Messaging) {
|
|||||||
room.isAdmin = isAdmin;
|
room.isAdmin = isAdmin;
|
||||||
room.notificationOptions = notifOptions.options;
|
room.notificationOptions = notifOptions.options;
|
||||||
room.notificationOptionsIcon = notifOptions.selectedIcon;
|
room.notificationOptionsIcon = notifOptions.selectedIcon;
|
||||||
|
room.composerActions = [];
|
||||||
|
|
||||||
const payload = await plugins.hooks.fire('filter:messaging.loadRoom', { uid, data, room });
|
const payload = await plugins.hooks.fire('filter:messaging.loadRoom', { uid, data, room });
|
||||||
return payload.room;
|
return payload.room;
|
||||||
|
|||||||
Reference in New Issue
Block a user