Skip to content

Commit 618aa3c

Browse files
committed
feat(TypingIndicator): limit avatars to 3
1 parent 54458f9 commit 618aa3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/src/comps/TypingIndicator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default class TypingIndicator extends Component {
1919

2020
reset(users: RoomMember[]) {
2121
this.avatarsDiv.innerHTML = ""
22-
for (const user of users.toReversed()) {
22+
for (const user of users.toReversed().slice(0, 3)) {
2323
const avatar = new Avatar(user.userId, "typing-avatar")
2424
this.avatarsDiv.appendChild(avatar.element)
2525
}

0 commit comments

Comments
 (0)