Skip to content

Commit

Permalink
fix nav
Browse files Browse the repository at this point in the history
  • Loading branch information
nakajima committed Feb 6, 2024
1 parent 9c4a8bc commit 809c6e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ struct ConversationListView: View {
switch conversationOrGroup {
case .conversation(let conversation):
conversations.insert(.conversation(conversation), at: 0)
coordinator.path.append(conversation)
coordinator.path.append(conversationOrGroup)
case .group(let group):
conversations.insert(.group(group), at: 0)
coordinator.path.append(group)
coordinator.path.append(conversationOrGroup)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ struct NewConversationView: View {
let group = try await client.conversations.newGroup(with: groupMembers)
try await client.conversations.sync()
await MainActor.run {
dismiss()
onCreate(.group(group))
}
} catch {
Expand Down

0 comments on commit 809c6e0

Please sign in to comment.