Page MenuHomePhabricator

D10035.id33680.diff
No OneTemporary

D10035.id33680.diff

diff --git a/native/account/registration/keyserver-selection.react.js b/native/account/registration/keyserver-selection.react.js
--- a/native/account/registration/keyserver-selection.react.js
+++ b/native/account/registration/keyserver-selection.react.js
@@ -111,7 +111,7 @@
const serverCallParamOverride = React.useMemo(
() => ({
keyserverInfos: {
- [keyserverURL]: {
+ [(keyserverURL: string)]: {
urlPrefix: keyserverURL,
},
},
diff --git a/native/markdown/markdown-spoiler.react.js b/native/markdown/markdown-spoiler.react.js
--- a/native/markdown/markdown-spoiler.react.js
+++ b/native/markdown/markdown-spoiler.react.js
@@ -63,9 +63,9 @@
if (messageKey && parsedSpoilerIdentifier !== null) {
setSpoilerRevealed({
...spoilerRevealed,
- [messageKey]: {
+ [(messageKey: string)]: {
...spoilerRevealed[messageKey],
- [parsedSpoilerIdentifier]: true,
+ [(parsedSpoilerIdentifier: number)]: true,
},
});
}
diff --git a/native/markdown/markdown-user-mention.react.js b/native/markdown/markdown-user-mention.react.js
--- a/native/markdown/markdown-user-mention.react.js
+++ b/native/markdown/markdown-user-mention.react.js
@@ -37,7 +37,7 @@
return;
}
- setUserProfileBottomSheetActive({ [messageKey]: false });
+ setUserProfileBottomSheetActive({ [(messageKey: string)]: false });
}, [messageKey, setUserProfileBottomSheetActive]);
useFocusEffect(onFocusCallback);
@@ -47,7 +47,7 @@
return;
}
- setUserProfileBottomSheetActive({ [messageKey]: true });
+ setUserProfileBottomSheetActive({ [(messageKey: string)]: true });
navigateToUserProfileBottomSheet(userID);
}, [
messageKey,
diff --git a/native/markdown/markdown-utils.js b/native/markdown/markdown-utils.js
--- a/native/markdown/markdown-utils.js
+++ b/native/markdown/markdown-utils.js
@@ -58,7 +58,7 @@
): () => void {
const { setLinkModalActive } = markdownContext;
const onDismiss = React.useCallback(() => {
- messageKey && setLinkModalActive({ [messageKey]: false });
+ messageKey && setLinkModalActive({ [(messageKey: string)]: false });
}, [setLinkModalActive, messageKey]);
const url = normalizeURL(inputURL);
@@ -78,7 +78,7 @@
deepLinksContext?.setCurrentLinkUrl(url);
return;
}
- messageKey && setLinkModalActive({ [messageKey]: true });
+ messageKey && setLinkModalActive({ [(messageKey: string)]: true });
Alert.alert(
'External link',
`You sure you want to open this link?\n\n${displayURL}`,

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 7:59 AM (12 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2703068
Default Alt Text
D10035.id33680.diff (2 KB)

Event Timeline