Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fairblue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hosting
chat
fairblue
Commits
8eaa48fe
Commit
8eaa48fe
authored
7 years ago
by
Tainan Felipe
Browse files
Options
Downloads
Patches
Plain Diff
re-added message when user leaves a meeting
parent
545d9e15
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
bigbluebutton-html5/imports/ui/components/chat/container.jsx
+20
-1
20 additions, 1 deletion
bigbluebutton-html5/imports/ui/components/chat/container.jsx
with
20 additions
and
1 deletion
bigbluebutton-html5/imports/ui/components/chat/container.jsx
+
20
−
1
View file @
8eaa48fe
...
...
@@ -38,7 +38,7 @@ export default injectIntl(createContainer(({ params, intl }) => {
const
chatID
=
params
.
chatID
||
PUBLIC_CHAT_KEY
;
let
messages
=
[];
cons
t
isChatLocked
=
ChatService
.
isChatLocked
(
chatID
);
le
t
isChatLocked
=
ChatService
.
isChatLocked
(
chatID
);
let
title
=
intl
.
formatMessage
(
intlMessages
.
titlePublic
);
let
chatName
=
title
;
...
...
@@ -73,9 +73,28 @@ export default injectIntl(createContainer(({ params, intl }) => {
title
=
intl
.
formatMessage
(
intlMessages
.
titlePrivate
,
{
0
:
chatUser
.
name
});
chatName
=
chatUser
.
name
;
if
(
!
chatUser
.
isOnline
)
{
const
time
=
Date
.
now
();
const
id
=
`partner-disconnected-
${
time
}
`
;
const
messagePartnerLoggedOut
=
{
id
,
content
:
[{
id
,
text
:
intl
.
formatMessage
(
intlMessages
.
partnerDisconnected
,
{
0
:
chatUser
.
name
}),
time
,
}],
time
,
sender
:
null
,
};
messages
.
push
(
messagePartnerLoggedOut
);
isChatLocked
=
true
;
}
}
}
const
scrollPosition
=
ChatService
.
getScrollPosition
(
chatID
);
const
hasUnreadMessages
=
ChatService
.
hasUnreadMessages
(
chatID
);
const
lastReadMessageTime
=
ChatService
.
lastReadMessageTime
(
chatID
);
...
...
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