Skip to content
Snippets Groups Projects
Commit e3af6912 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Limit unread count to 999

parent 97b86b57
No related merge requests found
...@@ -20,7 +20,10 @@ Meteor.startup -> ...@@ -20,7 +20,10 @@ Meteor.startup ->
unreadAlert = '•' unreadAlert = '•'
if unreadCount > 0 if unreadCount > 0
Session.set 'unread', unreadCount if unreadCount > 999
Session.set 'unread', '999+'
else
Session.set 'unread', unreadCount
else if unreadAlert isnt false else if unreadAlert isnt false
Session.set 'unread', unreadAlert Session.set 'unread', unreadAlert
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment