Skip to content

Commit

Permalink
refactor: remove unnecessary for loop aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Marín committed May 23, 2024
1 parent 3b35296 commit c78f27d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@
}

<!-- Messages -->
@for (message of messages(); track trackMessage(index, message); let index = $index) {
@for (message of messages(); track trackMessage($index, message)) {
<!-- Date separator -->
@if (message | fn:isSeparatorVisible:this:messages()[index - 1]) {
@if (message | fn:isSeparatorVisible:this:messages()[$index - 1]) {
<div style="clear: both"></div>
<div class="day-separator">
<span>{{ message.date | relativeDate : settings }}</span>
</div>
}

<ng-talk-channel-message cdkDrag cdkDragLockAxis="x" [message]="message" [prevMessage]="messages[index - 1]" [cdkDragDisabled]="message.type == MessageType.Writing"
<ng-talk-channel-message cdkDrag cdkDragLockAxis="x" [message]="message" [prevMessage]="messages[$index - 1]" [cdkDragDisabled]="message.type == MessageType.Writing"
(cdkDragMoved)="onDrag($event)" (cdkDragEnded)="onDragEnded($event, message)"/>
}
</div>
Expand Down

0 comments on commit c78f27d

Please sign in to comment.