2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +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

@@ -83,16 +83,16 @@ private:
AuthSession *_authSession = nullptr;
QMap<History*, QMap<MsgId, TimeMs>> _whenMaps;
QMap<History*, QMap<MsgId, crl::time>> _whenMaps;
struct Waiter {
Waiter(MsgId msg, TimeMs when, PeerData *notifyBy)
Waiter(MsgId msg, crl::time when, PeerData *notifyBy)
: msg(msg)
, when(when)
, notifyBy(notifyBy) {
}
MsgId msg;
TimeMs when;
crl::time when;
PeerData *notifyBy;
};
using Waiters = QMap<History*, Waiter>;
@@ -100,7 +100,7 @@ private:
Waiters _settingWaiters;
base::Timer _waitTimer;
QMap<History*, QMap<TimeMs, PeerData*>> _whenAlerts;
QMap<History*, QMap<crl::time, PeerData*>> _whenAlerts;
std::unique_ptr<Manager> _manager;