Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32212754
D4095.1765143757.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D4095.1765143757.diff
View Options
diff --git a/web/chat/chat-message-list.react.js b/web/chat/chat-message-list.react.js
--- a/web/chat/chat-message-list.react.js
+++ b/web/chat/chat-message-list.react.js
@@ -23,6 +23,7 @@
import {
useWatchThread,
useExistingThreadInfoFinder,
+ threadIsPending,
} from 'lib/shared/thread-utils';
import type { FetchMessageInfosPayload } from 'lib/types/message-types';
import { type ThreadInfo } from 'lib/types/thread-types';
@@ -426,7 +427,7 @@
return null;
}
- if (state.navInfo.pendingThread) {
+ if (threadIsPending(threadInfo?.id)) {
return true;
}
diff --git a/web/redux/nav-reducer.js b/web/redux/nav-reducer.js
--- a/web/redux/nav-reducer.js
+++ b/web/redux/nav-reducer.js
@@ -1,6 +1,7 @@
// @flow
import { locallyUniqueToRealizedThreadIDsSelector } from 'lib/selectors/thread-selectors';
+import { threadIsPending } from 'lib/shared/thread-utils';
import type { RawThreadInfo } from 'lib/types/thread-types';
import type { Action } from '../redux/redux-setup';
@@ -35,5 +36,10 @@
}
}
+ if (state.pendingThread && !threadIsPending(state.activeChatThreadID)) {
+ const { pendingThread, ...stateWithoutPendingThread } = state;
+ state = stateWithoutPendingThread;
+ }
+
return state;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 7, 9:42 PM (22 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5846114
Default Alt Text
D4095.1765143757.diff (1 KB)
Attached To
Mode
D4095: [web] Fix issue with fetching messages after creating pending thread
Attached
Detach File
Event Timeline
Log In to Comment