From 0a102d601c774805f9d68733b233647a09c56fa8 Mon Sep 17 00:00:00 2001 From: funilrys Date: Sun, 13 Nov 2022 10:14:20 +0100 Subject: [PATCH] Update Task.created_at Indeed, before this patch we weren't considering the TaskContent::SetingsUpdate while trying to find the creation date. --- dump/src/reader/v4/tasks.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dump/src/reader/v4/tasks.rs b/dump/src/reader/v4/tasks.rs index be98f9ee2..e563274d9 100644 --- a/dump/src/reader/v4/tasks.rs +++ b/dump/src/reader/v4/tasks.rs @@ -134,6 +134,14 @@ impl Task { Some(TaskEvent::Created(ts)) => Some(*ts), _ => None, }, + TaskContent::SettingsUpdate { + settings: _, + is_deletion: _, + allow_index_creation: _, + } => match self.events.first() { + Some(TaskEvent::Created(ts)) => Some(*ts), + _ => None, + }, _ => None, } }