fix: IPreRoomCreateModify not persisting changes made by apps (#35342)

pull/35480/head^2
Douglas Gubert 1 year ago committed by GitHub
parent 790c88e539
commit c44331e0d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      .changeset/pretty-dragons-remain.md
  2. 3
      packages/apps-engine/src/server/managers/AppListenerManager.ts

@ -0,0 +1,6 @@
---
'@rocket.chat/apps-engine': patch
'@rocket.chat/meteor': patch
---
Fixes an issue that prevents modifications from being persisted in the IPreRoomCreateModify

@ -326,6 +326,7 @@ export class AppListenerManager {
return !!(lockedEventList && lockedEventList.size);
}
/* eslint-disable-next-line complexity */
public async executeListener<I extends keyof IListenerExecutor>(int: I, data: IListenerExecutor[I]['args'][0]): Promise<IListenerExecutor[I]['result']> {
if (this.isEventBlocked(int)) {
throw new EssentialAppDisabledException('There is one or more apps that are essential to this event but are disabled');
@ -794,7 +795,7 @@ export class AppListenerManager {
}
}
return data;
return room;
}
private async executePostRoomCreate(data: IRoom): Promise<void> {

Loading…
Cancel
Save