[FIX] OTR not working (#23973)

pull/20388/head^2
gabriellsh 3 years ago committed by GitHub
parent dce8a147e4
commit 85e5a4b075
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      server/modules/notifications/notifications.module.ts

@ -275,13 +275,12 @@ export class NotificationsModule {
});
this.streamUser.allowWrite(async function(eventName) {
const [userId, e] = eventName.split('/');
const [, e] = eventName.split('/');
if (e === 'webrtc') {
return true;
}
return (this.userId != null) && (this.userId === userId);
return Boolean(this.userId);
});
this.streamUser.allowRead(async function(eventName) {
const [userId, e] = eventName.split('/');

Loading…
Cancel
Save