mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-31 07:52:06 +00:00
Excluded ability to display 0 views in channel posts.
This commit is contained in:
parent
dcd5aa83da
commit
63a6893fda
@ -1098,7 +1098,7 @@ void HistoryMessage::setViewsCount(int32 count) {
|
||||
|
||||
const auto was = views->_viewsWidth;
|
||||
views->_views = count;
|
||||
views->_viewsText = (views->_views >= 0)
|
||||
views->_viewsText = (views->_views > 0)
|
||||
? lng_channel_views(lt_count_short, views->_views)
|
||||
: QString();
|
||||
views->_viewsWidth = views->_viewsText.isEmpty()
|
||||
|
@ -1797,7 +1797,7 @@ void Message::initTime() {
|
||||
item->_timeWidth = st::msgDateFont->width(item->_timeText);
|
||||
}
|
||||
if (const auto views = item->Get<HistoryMessageViews>()) {
|
||||
views->_viewsText = (views->_views >= 0)
|
||||
views->_viewsText = (views->_views > 0)
|
||||
? lng_channel_views(lt_count_short, views->_views)
|
||||
: QString();
|
||||
views->_viewsWidth = views->_viewsText.isEmpty()
|
||||
|
Loading…
Reference in New Issue
Block a user