2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Use server time in dialogs list sorting.

This way it won't mess up when you change your local time.
This commit is contained in:
John Preston
2018-07-31 17:34:14 +03:00
parent f68cefbdc1
commit 9972f7b90e
10 changed files with 47 additions and 42 deletions

View File

@@ -150,7 +150,7 @@ void Feed::unregisterOne(not_null<ChannelData*> channel) {
void Feed::updateLastMessage(not_null<HistoryItem*> item) {
if (justUpdateLastMessage(item)) {
if (_lastMessage && *_lastMessage) {
setChatsListDate(ItemDateTime(*_lastMessage));
setChatsListTimeId((*_lastMessage)->date());
}
}
}
@@ -304,7 +304,7 @@ void Feed::setLastMessageFromChannels() {
void Feed::updateChatsListDate() {
if (_lastMessage && *_lastMessage) {
setChatsListDate(ItemDateTime(*_lastMessage));
setChatsListTimeId((*_lastMessage)->date());
}
}