fix: use membersChunks instead of chunkIdx

This commit is contained in:
devilreef 2025-11-22 12:43:12 +06:00
parent 1f1985c1ac
commit 1ea3f3ba97

View file

@ -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, ' ')}
`