Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
d789832b
Unverified
Commit
d789832b
authored
1 year ago
by
Martin Schoeler
Committed by
Diego Sampaio
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
regression: fix issue with triggers (#29073)
parent
4cb7944d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/livechat/src/lib/main.js
+2
-2
2 additions, 2 deletions
packages/livechat/src/lib/main.js
with
2 additions
and
2 deletions
packages/livechat/src/lib/main.js
+
2
−
2
View file @
d789832b
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment