mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 07:33:52 +02:00
Fixed display of negative views count in message preview from stats.
This commit is contained in:
parent
8a2dcbbcff
commit
b8c313965f
1 changed files with 1 additions and 1 deletions
|
@ -403,7 +403,7 @@ void PublicForwardsController::appendRow(
|
|||
const auto views = [&] {
|
||||
if (contextId.messageId) {
|
||||
const auto message = peer->owner().message(contextId.messageId);
|
||||
return message ? message->viewsCount() : 0;
|
||||
return message ? std::max(message->viewsCount(), 0) : 0;
|
||||
} else if (const auto &id = contextId.storyId) {
|
||||
const auto story = peer->owner().stories().lookup(id);
|
||||
return story ? (*story)->views() : 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue