Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3388649
D10041.id33686.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
791 B
Referenced Files
None
Subscribers
None
D10041.id33686.diff
View Options
diff --git a/native/chat/chat-router.js b/native/chat/chat-router.js
--- a/native/chat/chat-router.js
+++ b/native/chat/chat-router.js
@@ -114,9 +114,13 @@
if (!lastState) {
return lastState;
}
- return removeScreensFromStack(lastState, (route: Route<>) =>
- threadIDs.has(getThreadIDFromRoute(route)) ? 'remove' : 'keep',
- );
+ return removeScreensFromStack(lastState, (route: Route<>) => {
+ const threadID = getThreadIDFromRoute(route);
+ if (!threadID) {
+ return 'keep';
+ }
+ return threadIDs.has(threadID) ? 'remove' : 'keep';
+ });
} else if (action.type === pushNewThreadActionType) {
const { threadInfo } = action.payload;
if (!lastState) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 30, 3:26 PM (16 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2601436
Default Alt Text
D10041.id33686.diff (791 B)
Attached To
Mode
D10041: [Flow202][native][skip-ci] [57/x] Avoid looking up nullable type in non-nullable Set in ChatRouter
Attached
Detach File
Event Timeline
Log In to Comment