Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3178953
D10307.id36528.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D10307.id36528.diff
View Options
diff --git a/lib/actions/link-actions.js b/lib/actions/link-actions.js
--- a/lib/actions/link-actions.js
+++ b/lib/actions/link-actions.js
@@ -14,6 +14,7 @@
} from '../types/link-types.js';
import type { CallSingleKeyserverEndpoint } from '../utils/call-single-keyserver-endpoint.js';
import { useKeyserverCall } from '../utils/keyserver-call.js';
+import { useSelector } from '../utils/redux-utils.js';
import { ashoatKeyserverID } from '../utils/validation-utils.js';
const verifyInviteLinkActionTypes = Object.freeze({
@@ -56,8 +57,12 @@
request: InviteLinkVerificationRequest,
) => Promise<InviteLinkVerificationResponse> {
const keyserverID = keyserverOverride?.keyserverID ?? ashoatKeyserverID;
+ const isKeyserverKnown = useSelector(
+ state => !!state.keyserverStore.keyserverInfos[keyserverID],
+ );
+
let paramOverride = null;
- if (keyserverOverride) {
+ if (keyserverOverride && !isKeyserverKnown) {
paramOverride = {
keyserverInfos: {
[keyserverOverride.keyserverID]: {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 9, 2:49 AM (21 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2447721
Default Alt Text
D10307.id36528.diff (1 KB)
Attached To
Mode
D10307: [lib] Do not provide overrides when we already know a keyserver
Attached
Detach File
Event Timeline
Log In to Comment