Page MenuHomePhabricator

D10041.id33686.diff
No OneTemporary

D10041.id33686.diff

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

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)

Event Timeline