summary refs log tree commit diff
path: root/src/util/dtos/DmChannelDTO.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/dtos/DmChannelDTO.ts')
-rw-r--r--src/util/dtos/DmChannelDTO.ts12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/util/dtos/DmChannelDTO.ts b/src/util/dtos/DmChannelDTO.ts
index 8427f7f9..26829d58 100644
--- a/src/util/dtos/DmChannelDTO.ts
+++ b/src/util/dtos/DmChannelDTO.ts
@@ -29,11 +29,7 @@ export class DmChannelDTO {
 	recipients: MinimalPublicUserDTO[];
 	type: number;
 
-	static async from(
-		channel: Channel,
-		excluded_recipients: string[] = [],
-		origin_channel_id?: string,
-	) {
+	static async from(channel: Channel, excluded_recipients: string[] = [], origin_channel_id?: string) {
 		const obj = new DmChannelDTO();
 		obj.icon = channel.icon || null;
 		obj.id = channel.id;
@@ -51,7 +47,7 @@ export class DmChannelDTO {
 							where: { id: r.user_id },
 							select: PublicUserProjection,
 						});
-					}) || [],
+					}) || []
 			)
 		).map((u) => new MinimalPublicUserDTO(u));
 		return obj;
@@ -60,9 +56,7 @@ export class DmChannelDTO {
 	excludedRecipients(excluded_recipients: string[]): DmChannelDTO {
 		return {
 			...this,
-			recipients: this.recipients.filter(
-				(r) => !excluded_recipients.includes(r.id),
-			),
+			recipients: this.recipients.filter((r) => !excluded_recipients.includes(r.id)),
 		};
 	}
 }