Update Task.created_at
Indeed, before this patch we weren't considering the
TaskContent::SetingsUpdate while trying to find the creation date.
@@ -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,
}
}
