Page MenuHomePhorge

D6743.1768787864.diff
No OneTemporary

Size
803 B
Referenced Files
None
Subscribers
None

D6743.1768787864.diff

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

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)

Event Timeline