Improved unread split styles, now showing with 2+ unreads

This commit is contained in:
Igor Zhukov 2014-03-10 14:18:37 +01:00
parent ed48295a33
commit 85c1e95e65
2 changed files with 3 additions and 2 deletions

View File

@ -897,7 +897,8 @@ a.im_dialog:hover .im_dialog_date {
}*/
.im_message_unread_split {
background: #E9EBED;
background: #f4f4f4;
color: #777;
text-align: center;
padding: 4px 10px;
margin: 10px 0;

View File

@ -805,7 +805,7 @@ angular.module('myApp.services', [])
var unreadLimit = false;
if (!limit && !maxID) {
var foundDialog = getDialogByPeerID(peerID);
if (foundDialog && foundDialog[0] && foundDialog[0].unread_count > 0) {
if (foundDialog && foundDialog[0] && foundDialog[0].unread_count > 1) {
unreadLimit = foundDialog[0].unread_count;
limit = Math.max(20, unreadLimit + 2);
}