Skip to content

Commit aaffa7d

Browse files
committed
fix: PN channel navigation
1 parent a9e5dff commit aaffa7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/SampleApp/src/screens/ChannelScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export const ChannelScreen: React.FC<ChannelScreenProps> = ({
124124

125125
useEffect(() => {
126126
const initChannel = async () => {
127-
if (!chatClient || !channelId) {
127+
if (!chatClient || !channelId || channelFromProp) {
128128
return;
129129
}
130130

@@ -136,7 +136,7 @@ export const ChannelScreen: React.FC<ChannelScreenProps> = ({
136136
};
137137

138138
initChannel();
139-
}, [channelId, chatClient]);
139+
}, [channelFromProp, channelId, chatClient]);
140140

141141
useFocusEffect(() => {
142142
setSelectedThread(undefined);

0 commit comments

Comments
 (0)