MCPcopy Create free account
hub / github.com/CommE2E/comm / getAvailableProtocolsForSearching

Function getAvailableProtocolsForSearching

lib/shared/protocol-selection-utils.js:67–79  ·  view source on GitHub ↗
(
  selectedUserInfos: $ReadOnlyArray<SelectedUserInfo>,
  currentUserSupportsFarcasterDCs: boolean,
)

Source from the content-addressed store, hash-verified

65}
66
67function getAvailableProtocolsForSearching(
68 selectedUserInfos: $ReadOnlyArray<SelectedUserInfo>,
69 currentUserSupportsFarcasterDCs: boolean,
70): $ReadOnlyArray<ProtocolName> {
71 const availableProtocols = getSupportedProtocolsForSearching(
72 selectedUserInfos,
73 currentUserSupportsFarcasterDCs,
74 );
75 // We don't allow selecting the KEYSERVER protocol because it's deprecated
76 return availableProtocols.filter(
77 protocol => protocol !== protocolNames.KEYSERVER,
78 );
79}
80
81function getSearchingProtocol(
82 selectedUserInfos: $ReadOnlyArray<SelectedUserInfo>,

Callers 3

getSearchingProtocolFunction · 0.85

Calls 1

Tested by

no test coverage detected