fix: use membersChunks instead of chunkIdx
This commit is contained in:
parent
1f1985c1ac
commit
1ea3f3ba97
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ export class MentionService {
|
||||||
const chunkIdx = membersChunks.indexOf(memberChunk)
|
const chunkIdx = membersChunks.indexOf(memberChunk)
|
||||||
|
|
||||||
const message = format`
|
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, ' ')}
|
${join(this.buildMentions(memberChunk), entity => entity, ' ')}
|
||||||
`
|
`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue