diff --git a/projects/ng-talk/src/lib/components/channel/ng-talk-channel.component.html b/projects/ng-talk/src/lib/components/channel/ng-talk-channel.component.html index 4bcdb22..fd80c38 100644 --- a/projects/ng-talk/src/lib/components/channel/ng-talk-channel.component.html +++ b/projects/ng-talk/src/lib/components/channel/ng-talk-channel.component.html @@ -23,16 +23,16 @@ } - @for (message of messages(); track trackMessage(index, message); let index = $index) { + @for (message of messages(); track trackMessage($index, message)) { - @if (message | fn:isSeparatorVisible:this:messages()[index - 1]) { + @if (message | fn:isSeparatorVisible:this:messages()[$index - 1]) {
{{ message.date | relativeDate : settings }}
} - }