Browse Source

Improved posts in channels view

master
Igor Zhukov 7 years ago
parent
commit
ac815f764a
  1. 18
      app/js/messages_manager.js
  2. 10
      app/less/mobile.less

18
app/js/messages_manager.js

@ -2681,7 +2681,7 @@ angular.module('myApp.services') @@ -2681,7 +2681,7 @@ angular.module('myApp.services')
}
if (curMessage.views &&
!incrementedMessageViews[curMessage.mid]) {
!incrementedMessageViews[curMessage.mid]) {
incrementedMessageViews[curMessage.mid] = true
needIncrementMessageViews.push(curMessage.mid)
if (incrementMessageViewsTimeout === false) {
@ -2689,14 +2689,14 @@ angular.module('myApp.services') @@ -2689,14 +2689,14 @@ angular.module('myApp.services')
}
}
if (prevMessage &&
// !curMessage.views &&
prevMessage.fromID == curMessage.fromID &&
!prevMessage.fwdFromID == !curMessage.fwdFromID &&
prevMessage.viaBotID == curMessage.viaBotID &&
!prevMessage.action &&
!curMessage.action &&
curMessage.date < prevMessage.date + 900) {
if ((!AppPeersManager.isBroadcast(getMessagePeer(curMessage)) || curMessage.fwdFromID) &&
prevMessage &&
prevMessage.fromID == curMessage.fromID &&
!prevMessage.fwdFromID == !curMessage.fwdFromID &&
prevMessage.viaBotID == curMessage.viaBotID &&
!prevMessage.action &&
!curMessage.action &&
curMessage.date < prevMessage.date + 900) {
var singleLine = curMessage.message && curMessage.message.length < 70 && curMessage.message.indexOf('\n') == -1 && !curMessage.reply_to_mid
if (groupFwd &&
curMessage.fwdFromID &&

10
app/less/mobile.less

@ -864,11 +864,17 @@ img.im_message_video_thumb, @@ -864,11 +864,17 @@ img.im_message_video_thumb,
.im_message_date {
font-size: 10px;
line-height: 12px;
padding: 0;
display: block;
}
.im_message_edited {
position: absolute;
top: -11px;
display: block;
margin-top: 4px;
}
.im_message_date_text {
display: block;
margin-top: 3px;
}
.im_message_out {

Loading…
Cancel
Save