Skip to content

Commit

Permalink
Fix readMessages
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan committed Dec 8, 2022
1 parent 9789121 commit 0d62855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/app/ui-utils/client/lib/readMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export class ReadMessage extends Emitter {
if (firstUnreadRecord) {
room.unreadFirstId = firstUnreadRecord._id;
document.querySelector('.message.first-unread')?.classList.remove('first-unread');
document.querySelector(`.message#${firstUnreadRecord._id}`)?.classList.add('first-unread');
document.querySelector(`.message[data-id="${firstUnreadRecord._id}"]`)?.classList.add('first-unread');
}
}
}
Expand Down

0 comments on commit 0d62855

Please sign in to comment.