Unverified Commit 7cdad4bd authored by Joram Wilander's avatar Joram Wilander Committed by GitHub

Export isUnreadChannel from channel_utils (#787)

parent e7a6dea5
...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment