NgIf Sometimes Doesn't Work Properly Using 2 Condition
Following this post Hide chat if in the same minute as the last chat in angular i got an error like this enter image description here the red line, times not showing up but then un
Solution 1:
we should check for diffèrent time not the opposite , the question wasnt that clear but try this
"message.time !== messages[i - 1]?.time || message.author !== messages[i-1]?.author"
if the author is different as the message or the time is different only then we would display the time
i hope this is the logic you need , if not expriment with only time and go from there for example display when ever the time is different regardless of the author
"message.time !== messages[i - 1]?.time"
Post a Comment for "NgIf Sometimes Doesn't Work Properly Using 2 Condition"