Skip to content

Commit

Permalink
don't count timestamp messages when determining 'unread message' noti…
Browse files Browse the repository at this point in the history
…fications
  • Loading branch information
paulduran committed Jul 10, 2013
1 parent 9f441a0 commit 5a22af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Blaze/Scripts/blaze/models.js
Expand Up @@ -44,7 +44,7 @@ function RoomModel(obj, user, prefs, controller) {
};
this.addMessage = function (message) {
self.messages.push(message);
if ((!self.isVisible() || self.countOffline()) && !message.isNotification()) {
if ((!self.isVisible() || self.countOffline()) && !message.isNotification() && !message.isTimestamp()) {
self.unreadMessages(self.unreadMessages() + 1);
if (message.isToCurrentUser()) {
self.hasUnreadPersonalMessages(true);
Expand Down

0 comments on commit 5a22af9

Please sign in to comment.