From be74a391ba512c53a11488306f62d8eedbaf1341 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 13 Apr 2021 18:27:38 +0400 Subject: [PATCH] Show floor()-ed days count till voice chat start. --- Telegram/SourceFiles/ui/chat/group_call_bar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/ui/chat/group_call_bar.cpp b/Telegram/SourceFiles/ui/chat/group_call_bar.cpp index e8de32b97..72da22c02 100644 --- a/Telegram/SourceFiles/ui/chat/group_call_bar.cpp +++ b/Telegram/SourceFiles/ui/chat/group_call_bar.cpp @@ -68,7 +68,7 @@ void GroupCallScheduledLeft::update() { _late = late; constexpr auto kDay = 24 * 60 * 60; if (left >= kDay) { - const auto days = ((left / kDay) + 1); + const auto days = (left / kDay); _textNonNegative = tr::lng_group_call_duration_days( tr::now, lt_count,