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
1ae6738c
Commit
1ae6738c
authored
8 years ago
by
JaeeunCho
Browse files
Options
Downloads
Patches
Plain Diff
HTML5 - moved the openChats() to outside of container
parent
9036e8b7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bigbluebutton-html5/imports/ui/components/app/component.jsx
+1
-1
1 addition, 1 deletion
bigbluebutton-html5/imports/ui/components/app/component.jsx
bigbluebutton-html5/imports/ui/components/app/container.jsx
+8
-7
8 additions, 7 deletions
bigbluebutton-html5/imports/ui/components/app/container.jsx
with
9 additions
and
8 deletions
bigbluebutton-html5/imports/ui/components/app/component.jsx
+
1
−
1
View file @
1ae6738c
...
...
@@ -160,7 +160,7 @@ export default class App extends Component {
componentDidUpdate
(
prevProps
)
{
let
{
unreadMessageCount
,
openChats
,
openChat
}
=
this
.
props
;
unreadMessageCount
.
forEach
((
chat
,
i
)
=>
{
// When starting the new chat, if prevProps is undefined or null, it is assigned 0.
if
(
!
prevProps
.
unreadMessageCount
[
i
])
{
...
...
This diff is collapsed.
Click to expand it.
bigbluebutton-html5/imports/ui/components/app/container.jsx
+
8
−
7
View file @
1ae6738c
...
...
@@ -13,7 +13,7 @@ import NavBarContainer from '../nav-bar/container';
import
ActionsBarContainer
from
'
../actions-bar/container
'
;
import
MediaContainer
from
'
../media/container
'
;
import
ClosedCaptionsContainer
from
'
../closed-captions/container
'
;
import
u
serListService
from
'
../user-list/service
'
;
import
U
serListService
from
'
../user-list/service
'
;
import
Auth
from
'
/imports/ui/services/auth
'
;
const
defaultProps
=
{
...
...
@@ -54,26 +54,27 @@ const setLoading = (val) => {
};
const
checkUnreadMessages
=
()
=>
{
return
u
serListService
.
getOpenChats
().
map
(
chat
=>
chat
.
unreadCounter
)
return
U
serListService
.
getOpenChats
().
map
(
chat
=>
chat
.
unreadCounter
)
.
filter
(
userID
=>
userID
!==
Auth
.
userID
);
};
const
openChats
=
(
chatID
)
=>
{
// get currently opened chatID
return
UserListService
.
getOpenChats
(
chatID
).
map
(
chat
=>
chat
.
id
);
}
export
default
createContainer
(({
params
})
=>
{
Promise
.
all
(
subscribeForData
())
.
then
(()
=>
{
setLoading
(
false
);
});
const
openChats
=
()
=>
{
return
userListService
.
getOpenChats
(
params
.
chatID
).
map
(
chat
=>
chat
.
id
);
}
return
{
wasKicked
:
wasUserKicked
(),
isLoading
:
getLoading
(),
modal
:
getModal
(),
unreadMessageCount
:
checkUnreadMessages
(),
openChats
:
openChats
(),
openChats
:
openChats
(
params
.
chatID
),
openChat
:
params
.
chatID
,
getCaptionsStatus
,
redirectToLogoutUrl
,
...
...
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