Page MenuHomePhabricator

D10830.diff
No OneTemporary

D10830.diff

diff --git a/lib/selectors/user-selectors.js b/lib/selectors/user-selectors.js
--- a/lib/selectors/user-selectors.js
+++ b/lib/selectors/user-selectors.js
@@ -166,6 +166,15 @@
state.dataLoaded
);
+const isLoggedInToKeyserver: (
+ keyserverID: string,
+) => (state: BaseAppState<>) => boolean = _memoize(
+ (keyserverID: string) => (state: BaseAppState<>) => {
+ const cookie = state.keyserverStore.keyserverInfos[keyserverID]?.cookie;
+ return !!cookie && cookie.startsWith('user=');
+ },
+);
+
const usersWithPersonalThreadSelector: (
state: BaseAppState<>,
) => $ReadOnlySet<string> = createSelector(
@@ -212,6 +221,7 @@
relativeMemberInfoSelectorForMembersOfThread,
userInfoSelectorForPotentialMembers,
isLoggedIn,
+ isLoggedInToKeyserver,
usersWithPersonalThreadSelector,
savedEmojiAvatarSelectorForCurrentUser,
};

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 24, 3:26 AM (18 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2698127
Default Alt Text
D10830.diff (861 B)

Event Timeline