Skip to content

Commit

Permalink
metadata conversation type uses new FfiConversationType instead of st…
Browse files Browse the repository at this point in the history
…ring
  • Loading branch information
cameronvoell committed Nov 14, 2024
1 parent addce19 commit ad954ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bindings_ffi/src/mls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1660,11 +1660,11 @@ impl FfiConversationMetadata {
self.inner.creator_inbox_id.clone()
}

pub fn conversation_type(&self) -> String {
pub fn conversation_type(&self) -> FfiConversationType {
match self.inner.conversation_type {
ConversationType::Group => "group".to_string(),
ConversationType::Dm => "dm".to_string(),
ConversationType::Sync => "sync".to_string(),
ConversationType::Group => FfiConversationType::Group,
ConversationType::Dm => FfiConversationType::Dm,
ConversationType::Sync => FfiConversationType::Sync,
}
}
}
Expand Down

0 comments on commit ad954ed

Please sign in to comment.