Update Task.created_at

Indeed, before this patch we weren't considering the
TaskContent::SetingsUpdate while trying to find the creation date.
This commit is contained in:
funilrys 2022-11-13 10:14:20 +01:00
parent 8a14f6f545
commit 0a102d601c
No known key found for this signature in database
GPG Key ID: 0D8BFEF5515C00C6

View File

@ -134,6 +134,14 @@ impl Task {
Some(TaskEvent::Created(ts)) => Some(*ts), Some(TaskEvent::Created(ts)) => Some(*ts),
_ => None, _ => None,
}, },
TaskContent::SettingsUpdate {
settings: _,
is_deletion: _,
allow_index_creation: _,
} => match self.events.first() {
Some(TaskEvent::Created(ts)) => Some(*ts),
_ => None,
},
_ => None, _ => None,
} }
} }