Skip to content

Commit 75a4670

Browse files
authored
refactor(chat)!: admin/router missing endpoints/query params/participants actions (#1135)
* refactor(chat): sendInvitation props as object * fix(chat): missing populate query param from router * fix(chat): missing search message regex matching * chore(chat): cleanups * fix(chat): router invitation token count * refactor(chat): admin route createRoom participants logs, set creator * refactor(chat): participants actions * fix(chat): router query params id types * feat(chat): router remove member from room route * fix(chat): admin route getRooms missing params * fix(chat): admin route deleteRooms missing audit-mode config check * feat(chat): admin route removeUsers/addUsers/roomInvitations/roomById * feat(chat): participants join log on invitation accept
1 parent a979dc3 commit 75a4670

File tree

6 files changed

+441
-94
lines changed

6 files changed

+441
-94
lines changed

modules/chat/src/Chat.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export default class Chat extends ManagedModule<Config> {
4747
private adminRouter: AdminHandlers;
4848
private userRouter: ChatRoutes;
4949
private database: DatabaseProvider;
50-
private _emailServing: boolean;
51-
private _pushNotificationsServing: boolean;
50+
private _emailServing: boolean = false;
51+
private _pushNotificationsServing: boolean = false;
5252

5353
constructor() {
5454
super('chat');
@@ -133,7 +133,7 @@ export default class Chat extends ManagedModule<Config> {
133133
}
134134

135135
try {
136-
await validateUsersInput(this.grpcSdk, participants);
136+
await validateUsersInput(participants);
137137
} catch (e) {
138138
return callback({ code: (e as GrpcError).code, message: (e as GrpcError).message });
139139
}

0 commit comments

Comments
 (0)