Improved posts in channels view

This commit is contained in:
Igor Zhukov 2017-12-29 14:13:17 +04:00
parent 6d9a9d1394
commit ac815f764a
2 changed files with 17 additions and 11 deletions

View File

@ -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')
}
}
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 &&

View File

@ -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 {