Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33304749
D6743.1768787864.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
803 B
Referenced Files
None
Subscribers
None
D6743.1768787864.diff
View Options
diff --git a/native/chat/chat-list.react.js b/native/chat/chat-list.react.js
--- a/native/chat/chat-list.react.js
+++ b/native/chat/chat-list.react.js
@@ -154,7 +154,14 @@
curItem = this.props.data[curDataIndex];
}
if (!curItem) {
- // Should never happen...
+ // The only case in which we would expect the length of data to
+ // decrease, but find that an item was removed, is if the start
+ // of the chat is reached. In that case, the spinner at the top
+ // will no longer be rendered. We break here as we expect the
+ // spinner to be the last item.
+ if (prevItemKey === 'loader') {
+ break;
+ }
console.log(
`items not removed from ChatList, but ${prevItemKey} now missing`,
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 19, 1:57 AM (14 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5953900
Default Alt Text
D6743.1768787864.diff (803 B)
Attached To
Mode
D6743: [native] Fixed 'items not removed from ChatList [..]' error
Attached
Detach File
Event Timeline
Log In to Comment