Count unreads of the opened room too

pull/2637/head
Rodrigo Nascimento 10 years ago
parent 2af0b89492
commit 9be3caed5c
  1. 10
      client/startup/unread.coffee

@ -22,11 +22,11 @@ Meteor.startup ->
# The user has probably read all messages in this room.
# TODO: readNow() should return whether it has actually marked the room as read.
readMessage.readNow()
else
# Increment the total unread count.
unreadCount += subscription.unread
if subscription.alert is true
unreadAlert = ''
# Increment the total unread count.
unreadCount += subscription.unread
if subscription.alert is true
unreadAlert = ''
readMessage.refreshUnreadMark(subscription.rid)

Loading…
Cancel
Save