Editing and error correction (in progress)
This commit is contained in:
@@ -14,6 +14,7 @@ import {
|
||||
AddConversationRoomMemberDto,
|
||||
RemoveConversationRoomMemberDto,
|
||||
UpdateConversationRoomMemberRoleDto,
|
||||
ConversationTypingDto,
|
||||
} from './dto';
|
||||
import { ConversationsService } from './conversations.service';
|
||||
|
||||
@@ -43,6 +44,32 @@ export class ConversationsController {
|
||||
return this.conversations.listRooms(user.userId, user.organizationId, user.role);
|
||||
}
|
||||
|
||||
@Post('rooms/typing')
|
||||
signalTyping(
|
||||
@CurrentUser() user: { userId: string; organizationId: string; role: string },
|
||||
@Body() dto: ConversationTypingDto,
|
||||
) {
|
||||
return this.conversations.signalTyping(
|
||||
user.userId,
|
||||
user.organizationId,
|
||||
user.role,
|
||||
dto.externalRoomId,
|
||||
);
|
||||
}
|
||||
|
||||
@Get('rooms/typing')
|
||||
listTyping(
|
||||
@CurrentUser() user: { userId: string; organizationId: string; role: string },
|
||||
@Query('externalRoomId') externalRoomId: string,
|
||||
) {
|
||||
return this.conversations.listTyping(
|
||||
user.userId,
|
||||
user.organizationId,
|
||||
user.role,
|
||||
externalRoomId || '',
|
||||
);
|
||||
}
|
||||
|
||||
@Post('rooms/dm')
|
||||
createDm(
|
||||
@CurrentUser() user: { userId: string; organizationId: string; role: string },
|
||||
|
||||
Reference in New Issue
Block a user