Skip to content
Snippets Groups Projects
Unverified Commit d789832b authored by Martin Schoeler's avatar Martin Schoeler Committed by Diego Sampaio
Browse files

regression: fix issue with triggers (#29073)

parent 4cb7944d
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ export const getLastReadMessage = () => {
: renderedMessages
.slice()
.reverse()
.find((item) => item.u._id === user._id);
.find((item) => item.u._id === user?._id);
};
export const getUnreadMessages = () => {
......@@ -95,7 +95,7 @@ export const getUnreadMessages = () => {
: renderedMessages
.slice()
.reverse()
.findIndex((item) => item.u._id === user._id);
.findIndex((item) => item.u._id === user?._id);
if (lastReadMessageIndex !== -1) {
const unreadMessages = renderedMessages.slice(lastReadMessageIndex + 1).filter((message) => message.u._id !== user._id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment