Skip to content

Commit 7eeb5d3

Browse files
Disconnecting chat client on logout
1 parent dd82ad7 commit 7eeb5d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

DemoAppSwiftUI/CustomChannelHeader.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ struct CustomChannelModifier: ChannelListHeaderViewModifier {
7878
message: Text("Are you sure you want to sign out?"),
7979
primaryButton: .destructive(Text("Sign out")) {
8080
withAnimation {
81+
chatClient.disconnect()
8182
AppState.shared.userState = .notLoggedIn
8283
}
8384
},

0 commit comments

Comments
 (0)