feat(ffi) Add LatestEventValue::RemoteInvite.

This commit is contained in:
Ivan Enderlin
2026-01-22 11:15:18 +01:00
parent 8b26751a66
commit be2c1d44e0
@@ -1327,6 +1327,11 @@ pub enum LatestEventValue {
profile: ProfileDetails,
content: TimelineItemContent,
},
RemoteInvite {
timestamp: Timestamp,
inviter: Option<String>,
inviter_profile: ProfileDetails,
},
Local {
timestamp: Timestamp,
sender: String,
@@ -1349,6 +1354,13 @@ impl From<UiLatestEventValue> for LatestEventValue {
content: content.into(),
}
}
UiLatestEventValue::RemoteInvite { timestamp, inviter, inviter_profile } => {
Self::RemoteInvite {
timestamp: timestamp.into(),
inviter: inviter.map(|inviter| inviter.to_string()),
inviter_profile: inviter_profile.into(),
}
}
UiLatestEventValue::Local { timestamp, sender, profile, content, state } => {
Self::Local {
timestamp: timestamp.into(),