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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user