From 809c6e00c7ff2502826c5345b8a6f86e2fe4b4d0 Mon Sep 17 00:00:00 2001 From: Pat Nakajima Date: Tue, 6 Feb 2024 12:05:57 -0600 Subject: [PATCH] fix nav --- .../XMTPiOSExample/Views/ConversationListView.swift | 4 ++-- XMTPiOSExample/XMTPiOSExample/Views/NewConversationView.swift | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/XMTPiOSExample/XMTPiOSExample/Views/ConversationListView.swift b/XMTPiOSExample/XMTPiOSExample/Views/ConversationListView.swift index 16c84007..a44e0526 100644 --- a/XMTPiOSExample/XMTPiOSExample/Views/ConversationListView.swift +++ b/XMTPiOSExample/XMTPiOSExample/Views/ConversationListView.swift @@ -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) } } } diff --git a/XMTPiOSExample/XMTPiOSExample/Views/NewConversationView.swift b/XMTPiOSExample/XMTPiOSExample/Views/NewConversationView.swift index 5ee7e4fc..279d9eec 100644 --- a/XMTPiOSExample/XMTPiOSExample/Views/NewConversationView.swift +++ b/XMTPiOSExample/XMTPiOSExample/Views/NewConversationView.swift @@ -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 {