From 2ea16773c884b4d96fb07b4113af14a9b79af6f5 Mon Sep 17 00:00:00 2001 From: Mathis HERRIOT <197931332+0x485254@users.noreply.github.com> Date: Thu, 29 Jan 2026 18:21:54 +0100 Subject: [PATCH] feat(users): add boolean fields for online status and read receipts - Added `showOnlineStatus` and `showReadReceipts` fields to `UpdateUserDto` with validation. --- backend/src/users/dto/update-user.dto.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/backend/src/users/dto/update-user.dto.ts b/backend/src/users/dto/update-user.dto.ts index 9587e08..09737c7 100644 --- a/backend/src/users/dto/update-user.dto.ts +++ b/backend/src/users/dto/update-user.dto.ts @@ -1,4 +1,4 @@ -import { IsOptional, IsString, MaxLength } from "class-validator"; +import { IsBoolean, IsOptional, IsString, MaxLength } from "class-validator"; export class UpdateUserDto { @IsOptional() @@ -22,4 +22,12 @@ export class UpdateUserDto { @IsOptional() @IsString() role?: string; + + @IsOptional() + @IsBoolean() + showOnlineStatus?: boolean; + + @IsOptional() + @IsBoolean() + showReadReceipts?: boolean; }