fix: handle legacy "client_updated_at"

This commit is contained in:
Baptiste Grob
2020-12-10 16:01:42 +01:00
parent aca5ad0dfa
commit 57901b6844

View File

@@ -424,7 +424,10 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> {
PrefKey.SortNotesBy,
CollectionSort.CreatedAt
);
if (sortBy === CollectionSort.UpdatedAt) {
if (
sortBy === CollectionSort.UpdatedAt ||
(sortBy as string) === "client_updated_at"
) {
/** Use UserUpdatedAt instead */
sortBy = CollectionSort.UpdatedAt;
}