Skip to content

Commit

Permalink
fix: username (Post as) field is not being updated in incoming webhoo…
Browse files Browse the repository at this point in the history
…k integration panel (RocketChat#34085)

Co-authored-by: Guilherme Gazzo <[email protected]>
  • Loading branch information
hiagohubert and ggazzo authored Dec 2, 2024
1 parent a11f41e commit 2c2a35a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down Expand Up @@ -175,6 +176,7 @@ Meteor.methods<ServerMethods>({
emoji: integration.emoji,
alias: integration.alias,
channel: channels,
...('username' in integration && { username: integration.username }),
...(isFrozen
? {}
: {
Expand Down

0 comments on commit 2c2a35a

Please sign in to comment.