Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33031223
D13489.1768403093.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D13489.1768403093.diff
View Options
diff --git a/lib/shared/thread-utils.js b/lib/shared/thread-utils.js
--- a/lib/shared/thread-utils.js
+++ b/lib/shared/thread-utils.js
@@ -1829,24 +1829,24 @@
if (!allowOlmViaTunnelbrokerForDMs) {
return [];
}
- const supports = [];
- const needFetch = [];
+ const userSupportingThickThreads = [];
+ const usersNeedsFetch = [];
for (const userID of userIDs) {
if (userHasDeviceList(userID, auxUserInfos)) {
- supports.push(userID);
+ userSupportingThickThreads.push(userID);
} else {
- needFetch.push(userID);
+ usersNeedsFetch.push(userID);
}
}
- if (needFetch.length > 0) {
- const { identities } = await findUserIdentities(needFetch);
- for (const userID of needFetch) {
+ if (usersNeedsFetch.length > 0) {
+ const { identities } = await findUserIdentities(usersNeedsFetch);
+ for (const userID of usersNeedsFetch) {
if (identities[userID]) {
- supports.push(userID);
+ userSupportingThickThreads.push(userID);
}
}
}
- return supports;
+ return userSupportingThickThreads;
},
[allowOlmViaTunnelbrokerForDMs, auxUserInfos, findUserIdentities],
);
@@ -1919,4 +1919,5 @@
isMemberActive,
createThreadTimestamps,
userHasDeviceList,
+ useUserSupportThickThread,
};
diff --git a/native/chat/chat-thread-list.react.js b/native/chat/chat-thread-list.react.js
--- a/native/chat/chat-thread-list.react.js
+++ b/native/chat/chat-thread-list.react.js
@@ -279,8 +279,6 @@
],
);
- const allowOlmViaTunnelbrokerForDMs = useAllowOlmViaTunnelbrokerForDMs();
-
const listData: $ReadOnlyArray<Item> = React.useMemo(() => {
const chatThreadItems = getThreadListSearchResults(
boundChatListData,
@@ -289,7 +287,6 @@
threadSearchResults,
usersSearchResults,
loggedInUserInfo,
- allowOlmViaTunnelbrokerForDMs,
);
const chatItems: Item[] = [...chatThreadItems];
@@ -304,7 +301,6 @@
return chatItems;
}, [
- allowOlmViaTunnelbrokerForDMs,
boundChatListData,
emptyItem,
filterThreads,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 14, 3:04 PM (6 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5932613
Default Alt Text
D13489.1768403093.diff (2 KB)
Attached To
Mode
D13489: [lib] implement checking if user supports thick thread
Attached
Detach File
Event Timeline
Log In to Comment