mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Feature/matrix extended (#1162)
* added Matrix option to send notice and emote messages * added Matrix option to send HTML messages * ⚡ Small text changes Co-authored-by: Sabine <sabinbox@laszakovits.net>
This commit is contained in:
@@ -79,10 +79,96 @@ export const messageFields = [
|
||||
},
|
||||
description: 'The text to send.',
|
||||
},
|
||||
{
|
||||
displayName: 'Message type',
|
||||
name: 'msgType',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'message',
|
||||
],
|
||||
},
|
||||
},
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Text',
|
||||
value: 'm.text',
|
||||
description: 'Send a text message.',
|
||||
},
|
||||
{
|
||||
name: 'Emote',
|
||||
value: 'm.emote',
|
||||
description: 'Perform an action (similar to /me in IRC).',
|
||||
},
|
||||
{
|
||||
name: 'Notice',
|
||||
value: 'm.notice',
|
||||
description: 'Send a notice.',
|
||||
},
|
||||
],
|
||||
default: 'm.text',
|
||||
description: 'The type of message to send.',
|
||||
},
|
||||
{
|
||||
displayName: 'Message Format',
|
||||
name: 'format',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: [
|
||||
'message',
|
||||
],
|
||||
},
|
||||
},
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Plain Text',
|
||||
value: 'plain',
|
||||
description: 'Text only',
|
||||
},
|
||||
{
|
||||
name: 'HTML',
|
||||
value: 'org.matrix.custom.html',
|
||||
description: 'HTML-formatted text',
|
||||
},
|
||||
],
|
||||
default: 'plain',
|
||||
description: "The format of the message's body.",
|
||||
},
|
||||
{
|
||||
displayName: 'Fallback Text',
|
||||
name: 'fallbackText',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'message',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
format: [
|
||||
'org.matrix.custom.html',
|
||||
],
|
||||
},
|
||||
},
|
||||
type: 'string',
|
||||
typeOptions: {
|
||||
alwaysOpenEditWindow: true,
|
||||
},
|
||||
placeholder: 'HTML message could not be displayed.',
|
||||
description: 'A plain text message to display in case the HTML cannot be rendered by the Matrix client.',
|
||||
},
|
||||
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* message:getAll */
|
||||
/* message:getAll */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Room ID',
|
||||
|
||||
Reference in New Issue
Block a user