Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
mattermost-redux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
sysadmin
mattermost
mattermost-redux
Commits
7cdad4bd
Unverified
Commit
7cdad4bd
authored
Mar 07, 2019
by
Joram Wilander
Committed by
GitHub
Mar 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export isUnreadChannel from channel_utils (#787)
parent
e7a6dea5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/utils/channel_utils.js
src/utils/channel_utils.js
+1
-1
No files found.
src/utils/channel_utils.js
View file @
7cdad4bd
...
@@ -498,7 +498,7 @@ function channelHasUnreadMessages(members: RelationOneToOne<Channel, ChannelMemb
...
@@ -498,7 +498,7 @@ function channelHasUnreadMessages(members: RelationOneToOne<Channel, ChannelMemb
return
false
;
return
false
;
}
}
function
isUnreadChannel
(
members
:
RelationOneToOne
<
Channel
,
ChannelMembership
>
,
channel
:
Channel
):
boolean
{
export
function
isUnreadChannel
(
members
:
RelationOneToOne
<
Channel
,
ChannelMembership
>
,
channel
:
Channel
):
boolean
{
const
member
=
members
[
channel
.
id
];
const
member
=
members
[
channel
.
id
];
if
(
member
)
{
if
(
member
)
{
const
msgCount
=
channel
.
total_msg_count
-
member
.
msg_count
;
const
msgCount
=
channel
.
total_msg_count
-
member
.
msg_count
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment