Adding the typing... indicator, loading older messages, and managing members/admins after creation.
This commit is contained in:
@@ -115,3 +115,50 @@ export class PinConversationRoomDto {
|
||||
@IsBoolean()
|
||||
pinned!: boolean;
|
||||
}
|
||||
|
||||
export class ConversationRoomMembersQueryDto {
|
||||
@IsString()
|
||||
@MinLength(1)
|
||||
@MaxLength(200)
|
||||
externalRoomId!: string;
|
||||
}
|
||||
|
||||
export class AddConversationRoomMemberDto {
|
||||
@IsString()
|
||||
@MinLength(1)
|
||||
@MaxLength(200)
|
||||
externalRoomId!: string;
|
||||
|
||||
@IsString()
|
||||
@MinLength(1)
|
||||
userId!: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
role?: 'admin' | 'member';
|
||||
}
|
||||
|
||||
export class RemoveConversationRoomMemberDto {
|
||||
@IsString()
|
||||
@MinLength(1)
|
||||
@MaxLength(200)
|
||||
externalRoomId!: string;
|
||||
|
||||
@IsString()
|
||||
@MinLength(1)
|
||||
userId!: string;
|
||||
}
|
||||
|
||||
export class UpdateConversationRoomMemberRoleDto {
|
||||
@IsString()
|
||||
@MinLength(1)
|
||||
@MaxLength(200)
|
||||
externalRoomId!: string;
|
||||
|
||||
@IsString()
|
||||
@MinLength(1)
|
||||
userId!: string;
|
||||
|
||||
@IsString()
|
||||
role!: 'admin' | 'member';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user