This commit is contained in:
Thomas Schlage 2026-05-12 15:33:01 +03:00 committed by GitHub
commit b98ad11a87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 29 additions and 9 deletions

View File

@ -403,8 +403,8 @@ export class GoogleChat implements INodeType {
// get additional fields for threadKey and requestId
const additionalFields = this.getNodeParameter('additionalFields', i);
if (additionalFields.threadKey) {
qs.threadKey = additionalFields.threadKey;
if (additionalFields.messageReplyOption) {
qs.messageReplyOption = additionalFields.messageReplyOption;
}
if (additionalFields.requestId) {
qs.requestId = additionalFields.requestId;

View File

@ -214,13 +214,33 @@ export const messageFields: INodeProperties[] = [
},
},
options: [
// {
// displayName: 'Thread Key',
// name: 'threadKey',
// type: 'string',
// default: '',
// description: 'Thread identifier which groups messages into a single thread. Has no effect if thread field, corresponding to an existing thread, is set in message. Example: spaces/AAAAMpdlehY/threads/MZ8fXhZXGkk.',
// },
{
displayName: 'Message Reply Option',
name: 'messageReplyOption',
type: 'options',
default: '',
description: 'Configure the behavior if replying to threads',
options: [
{
name: 'Unspecified',
value: 'MESSAGE_REPLY_OPTION_UNSPECIFIED',
description:
'Ignores threadKey or thread name specified in the message and always starts a new thread.',
},
{
name: 'Reply and fallback to new thread',
value: 'REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD',
description:
'Replies to the thread specified in the message, or starts a new thread if no thread is specified.',
},
{
name: 'Reply or fail',
value: 'REPLY_MESSAGE_OR_FAIL',
description:
'Replies to the thread specified in the message, or fails if no thread is specified.',
},
],
},
{
displayName: 'Request ID',
name: 'requestId',