2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Use crl::time/now instead of TimeMs/getms.

This commit is contained in:
John Preston
2019-02-19 10:57:53 +04:00
parent d208236994
commit fe618bd652
310 changed files with 1133 additions and 1141 deletions

View File

@@ -33,7 +33,7 @@ namespace Support {
namespace {
constexpr auto kOccupyFor = TimeId(60);
constexpr auto kReoccupyEach = 30 * TimeMs(1000);
constexpr auto kReoccupyEach = 30 * crl::time(1000);
constexpr auto kMaxSupportInfoLength = MaxMessageSize * 4;
class EditInfoBox : public BoxContent {
@@ -341,7 +341,7 @@ void Helper::checkOccupiedChats() {
Notify::PeerUpdate::Flag::UserOccupiedChanged);
} else {
_checkOccupiedTimer.callOnce(
(nearest->second - now) * TimeMs(1000));
(nearest->second - now) * crl::time(1000));
return;
}
}