mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fixed display of views count.
This commit is contained in:
@@ -455,7 +455,9 @@ HistoryMessage::HistoryMessage(
|
||||
int fwdViewsCount = original->viewsCount();
|
||||
if (fwdViewsCount > 0) {
|
||||
config.viewsCount = fwdViewsCount;
|
||||
} else if (isPost()) {
|
||||
} else if (isPost()
|
||||
|| (original->senderOriginal()
|
||||
&& original->senderOriginal()->isChannel())) {
|
||||
config.viewsCount = 1;
|
||||
}
|
||||
|
||||
@@ -1114,7 +1116,7 @@ void HistoryMessage::setViewsCount(int32 count) {
|
||||
views->_views = count;
|
||||
views->_viewsText = (views->_views > 0)
|
||||
? Lang::FormatCountToShort(views->_views).string
|
||||
: QString();
|
||||
: QString("1");
|
||||
views->_viewsWidth = views->_viewsText.isEmpty()
|
||||
? 0
|
||||
: st::msgDateFont->width(views->_viewsText);
|
||||
|
Reference in New Issue
Block a user