mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 12:37:56 +00:00
Format time, fix sort (#230)
This commit is contained in:
@@ -150,10 +150,9 @@ export default {
|
||||
} else {
|
||||
copyList = this.allChatList.slice();
|
||||
}
|
||||
const sorted = copyList.sort((a, b) =>
|
||||
this.wootTime(this.lastMessage(a).created_at).isBefore(
|
||||
this.wootTime(this.lastMessage(b).created_at)
|
||||
)
|
||||
const sorted = copyList.sort(
|
||||
(a, b) =>
|
||||
this.lastMessage(b).created_at - this.lastMessage(a).created_at
|
||||
);
|
||||
|
||||
return sorted;
|
||||
|
||||
Reference in New Issue
Block a user