resolve display issue by simplifying reaction.userId handling

This commit is contained in:
Chneemann 2024-09-18 04:36:48 +02:00
parent 11def9cb0d
commit d9076621bf

View file

@ -30,13 +30,13 @@
></app-emoji-picker>
}
<div class="emojiSection">
@for (reaction of getReaction(chat.id); track reaction; let i = $index) {
@if (reaction.id) {
@for (reaction of getReaction(chat.id); track reaction) { @if (reaction.id)
{
<div
class="emoji"
[ngStyle]="{
'background-color':
reaction.userId[i] == userService.getCurrentUserId() ? '#c7cafc' : ''
reaction.userId == userService.getCurrentUserId() ? '#c7cafc' : ''
}"
(click)="toggleEmoji(reaction.id)"
(mousemove)="openDialog(reaction.id, $event)"