Skip to content
Snippets Groups Projects
Unverified Commit 2c2a35af authored by Hiago Hubert's avatar Hiago Hubert Committed by GitHub
Browse files

fix: username (Post as) field is not being updated in incoming webhook integration panel (#34085)

parent a11f41e1
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,7 @@ declare module '@rocket.chat/ddp-client' {
}
Meteor.methods<ServerMethods>({
// eslint-disable-next-line complexity
async updateIncomingIntegration(integrationId, integration) {
if (!this.userId) {
throw new Meteor.Error('error-invalid-user', 'Invalid user', {
......@@ -175,6 +176,7 @@ Meteor.methods<ServerMethods>({
emoji: integration.emoji,
alias: integration.alias,
channel: channels,
...('username' in integration && { username: integration.username }),
...(isFrozen
? {}
: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment