feat(ffi) Add LatestEventValue::RemoteInvite.
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user