Page MenuHomePhabricator

D10307.id36528.diff
No OneTemporary

D10307.id36528.diff

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

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)

Event Timeline