resolve display issue by simplifying reaction.userId handling
This commit is contained in:
parent
11def9cb0d
commit
d9076621bf
1 changed files with 3 additions and 3 deletions
|
|
@ -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)"
|
||||
|
|
|
|||
Loading…
Reference in a new issue