events: Remove created_ts from call::member::MembershipInit

This commit is contained in:
Jonas Platte 2023-10-19 17:52:21 +02:00
parent 7567fd63b5
commit b2f977303f
No known key found for this signature in database
GPG Key ID: AAA7A61F696C3E0C

View File

@ -176,12 +176,6 @@ pub struct MembershipInit {
/// `MIN(content.created_ts, event.origin_server_ts)`
pub expires: Duration,
/// Stores a copy of the `origin_server_ts` of the initial session event.
///
/// If the membership is updated this field will be used to track to
/// original `origin_server_ts`.
pub created_ts: Option<MilliSecondsSinceUnixEpoch>,
/// A list of the focuses (foci) in use for this membership.
pub foci_active: Vec<Focus>,
@ -195,15 +189,8 @@ pub struct MembershipInit {
impl From<MembershipInit> for Membership {
fn from(init: MembershipInit) -> Self {
let MembershipInit {
application,
device_id,
expires,
created_ts,
foci_active,
membership_id,
} = init;
Self { application, device_id, expires, created_ts, foci_active, membership_id }
let MembershipInit { application, device_id, expires, foci_active, membership_id } = init;
Self { application, device_id, expires, created_ts: None, foci_active, membership_id }
}
}