Skip to content

Commit

Permalink
get the app building again
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed May 30, 2024
1 parent 8663f59 commit c0b40e9
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions XMTPiOSExample/XMTPiOSExample/Views/NewConversationView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@ enum ConversationOrGroup: Hashable {
}

var id: String {
get throws {
switch self {
case .conversation(let conversation):
return try conversation.peerAddress
case .group(let group):
return try group.members.map(\.inboxId).joined(separator: ",")
}
switch self {
case .conversation(let conversation):
return conversation.topic
case .group(let group):
return group.id.toHexString()
}
}

Expand Down

0 comments on commit c0b40e9

Please sign in to comment.