Browse Source

Improved unread split styles, now showing with 2+ unreads

master
Igor Zhukov 10 years ago
parent
commit
85c1e95e65
  1. 3
      app/css/app.css
  2. 2
      app/js/services.js

3
app/css/app.css

@ -897,7 +897,8 @@ a.im_dialog:hover .im_dialog_date { @@ -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;

2
app/js/services.js

@ -805,7 +805,7 @@ angular.module('myApp.services', []) @@ -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);
}

Loading…
Cancel
Save