Skip to content

Commit

Permalink
refactor(chat)!: admin/router missing endpoints/query params/particip…
Browse files Browse the repository at this point in the history
…ants 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
  • Loading branch information
Renc17 authored and kkopanidis committed Sep 18, 2024
1 parent cb06657 commit 1f50ca6
Show file tree
Hide file tree
Showing 6 changed files with 441 additions and 94 deletions.
6 changes: 3 additions & 3 deletions modules/chat/src/Chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export default class Chat extends ManagedModule<Config> {
private adminRouter: AdminHandlers;
private userRouter: ChatRoutes;
private database: DatabaseProvider;
private _emailServing: boolean;
private _pushNotificationsServing: boolean;
private _emailServing: boolean = false;
private _pushNotificationsServing: boolean = false;

constructor() {
super('chat');
Expand Down Expand Up @@ -133,7 +133,7 @@ export default class Chat extends ManagedModule<Config> {
}

try {
await validateUsersInput(this.grpcSdk, participants);
await validateUsersInput(participants);
} catch (e) {
return callback({ code: (e as GrpcError).code, message: (e as GrpcError).message });
}
Expand Down
Loading

0 comments on commit 1f50ca6

Please sign in to comment.