Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(shared): compose NFD file names in link chips and the @ menu #39610

Mergedjuliusmarmingemerged 6 commits intomain fromrefs/pull/39610/headmerged by juliusmarminge View on GitHub

Showing 15 changed files with 3 additions and 3 deletions (loading 12).

x
0 of 15 viewed, 15 left
1 addition and 1 deletionapps/mobile/src/features/threads/use-composer-command-menu.tsModified
View file
@@ -546,7 +546,7 @@
...environmentItems,
...modelItems,
...pathSearch.entries.map((entry) => {
- const parts = entry.path.split("/");
+ const parts = entry.path.normalize("NFC").split("/");
return {
id: `path:${entry.path}`,
type: "path" as const,
1 addition and 1 deletionapps/mobile/src/native/T3ComposerEditor.ios.tsxModified
View file
@@ -220,7 +220,7 @@
? `${token.label}${props.context?.records.some((record) => record.contextId === token.contextId) ? "" : " · unavailable"}`
: token.type === "citation"
? token.value
- : basename(token.value),
+ : basename(token.value).normalize("NFC"),
detail: token.type === "context" ? composerChipSizeSuffix(record) : "",
iconUri: model ? modelChipIconUri(model) : contextChipIconUri(icon),
tintsIcon: model ? modelChipIcon(model).tintsIcon : icon.kind === "chip",
1 addition and 1 deletionapps/mobile/src/native/T3ComposerEditor.native.tsxModified
View file
@@ -220,7 +220,7 @@
? `${token.label}${props.context?.records.some((record) => record.contextId === token.contextId) ? "" : " · unavailable"}`
: token.type === "citation"
? token.value