From 1ea3f3ba97e718540fdc559bc91c063e4229a344 Mon Sep 17 00:00:00 2001 From: devilreef <86633411+devilr33f@users.noreply.github.com> Date: Sat, 22 Nov 2025 12:43:12 +0600 Subject: [PATCH] fix: use membersChunks instead of chunkIdx --- src/shared/services/mention.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/services/mention.ts b/src/shared/services/mention.ts index 330fb52..dfb0aac 100644 --- a/src/shared/services/mention.ts +++ b/src/shared/services/mention.ts @@ -18,7 +18,7 @@ export class MentionService { const chunkIdx = membersChunks.indexOf(memberChunk) const message = format` - ${bold('Mass mention by')} ${bold(mention('user', { id: caller.id, is_bot: caller.isBot(), first_name: caller.firstName }))} ${chunkIdx > 0 ? italic(`[${chunkIdx + 1}/${membersChunks.length}]`) : ''} + ${bold('Mass mention by')} ${bold(mention('user', { id: caller.id, is_bot: caller.isBot(), first_name: caller.firstName }))} ${membersChunks.length > 1 ? italic(`[${chunkIdx + 1}/${membersChunks.length}]`) : ''} ${join(this.buildMentions(memberChunk), entity => entity, ' ')} `