summary refs log tree commit diff
path: root/util/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-17 10:57:24 +0200
committerGitHub <noreply@github.com>2021-09-17 10:57:24 +0200
commitf4db45ad9d84af24f9c0859a1e2bee05a1f72546 (patch)
tree68224a9c162419ec6944962a281c3ed9a3313275 /util/src
parentImplemented DMs and group DMs (diff)
downloadserver-f4db45ad9d84af24f9c0859a1e2bee05a1f72546.tar.xz
Update ChannelService.ts
Diffstat (limited to 'util/src')
-rw-r--r--util/src/services/ChannelService.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/src/services/ChannelService.ts b/util/src/services/ChannelService.ts
index 7cded10f..319475b6 100644
--- a/util/src/services/ChannelService.ts
+++ b/util/src/services/ChannelService.ts
@@ -13,6 +13,7 @@ export class ChannelService {
 		recipients = recipients.unique().filter((x) => x !== creator_user_id);
 		const otherRecipientsUsers = await User.find({ where: recipients.map((x) => ({ id: x })) });
 
+		// TODO: check config for max number of recipients
 		if (otherRecipientsUsers.length !== recipients.length) {
 			throw new HTTPError("Recipient/s not found");
 		}
@@ -85,4 +86,4 @@ export class ChannelService {
 			}, channel_id: channel.id
 		} as ChannelRecipientRemoveEvent);
 	}
-}
\ No newline at end of file
+}