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:
@@ -246,7 +246,7 @@ void showPeerProfile(not_null<const History*> history) {
|
||||
void showPeerHistory(
|
||||
const PeerId &peer,
|
||||
MsgId msgId) {
|
||||
auto ms = getms();
|
||||
auto ms = crl::now();
|
||||
if (auto m = App::main()) {
|
||||
m->ui_showPeerHistory(
|
||||
peer,
|
||||
@@ -410,13 +410,13 @@ struct Data {
|
||||
|
||||
Stickers::Sets StickerSets;
|
||||
Stickers::Order StickerSetsOrder;
|
||||
TimeMs LastStickersUpdate = 0;
|
||||
TimeMs LastRecentStickersUpdate = 0;
|
||||
TimeMs LastFavedStickersUpdate = 0;
|
||||
crl::time LastStickersUpdate = 0;
|
||||
crl::time LastRecentStickersUpdate = 0;
|
||||
crl::time LastFavedStickersUpdate = 0;
|
||||
Stickers::Order FeaturedStickerSetsOrder;
|
||||
int FeaturedStickerSetsUnreadCount = 0;
|
||||
base::Observable<void> FeaturedStickerSetsUnreadCountChanged;
|
||||
TimeMs LastFeaturedStickersUpdate = 0;
|
||||
crl::time LastFeaturedStickersUpdate = 0;
|
||||
Stickers::Order ArchivedStickerSetsOrder;
|
||||
|
||||
CircleMasksMap CircleMasks;
|
||||
@@ -544,13 +544,13 @@ DefineVar(Global, HiddenPinnedMessagesMap, HiddenPinnedMessages);
|
||||
|
||||
DefineVar(Global, Stickers::Sets, StickerSets);
|
||||
DefineVar(Global, Stickers::Order, StickerSetsOrder);
|
||||
DefineVar(Global, TimeMs, LastStickersUpdate);
|
||||
DefineVar(Global, TimeMs, LastRecentStickersUpdate);
|
||||
DefineVar(Global, TimeMs, LastFavedStickersUpdate);
|
||||
DefineVar(Global, crl::time, LastStickersUpdate);
|
||||
DefineVar(Global, crl::time, LastRecentStickersUpdate);
|
||||
DefineVar(Global, crl::time, LastFavedStickersUpdate);
|
||||
DefineVar(Global, Stickers::Order, FeaturedStickerSetsOrder);
|
||||
DefineVar(Global, int, FeaturedStickerSetsUnreadCount);
|
||||
DefineRefVar(Global, base::Observable<void>, FeaturedStickerSetsUnreadCountChanged);
|
||||
DefineVar(Global, TimeMs, LastFeaturedStickersUpdate);
|
||||
DefineVar(Global, crl::time, LastFeaturedStickersUpdate);
|
||||
DefineVar(Global, Stickers::Order, ArchivedStickerSetsOrder);
|
||||
|
||||
DefineRefVar(Global, CircleMasksMap, CircleMasks);
|
||||
|
Reference in New Issue
Block a user