Skip to content

Commit bf4246b

Browse files
committed
Replace dcaccount9 with dcaccount
1 parent d7c2d01 commit bf4246b

File tree

8 files changed

+5
-10
lines changed

8 files changed

+5
-10
lines changed

packages/e2e-tests/playwright-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export async function createNewProfile(
168168
if (!chatmailServerDomain) {
169169
throw new Error('DC_CHATMAIL_DOMAIN env var not set, cannot run tests')
170170
}
171-
dcAccountLink = `dcaccount9:${chatmailServerDomain satisfies string}`
171+
dcAccountLink = `dcaccount:${chatmailServerDomain satisfies string}`
172172
} else {
173173
if (!mailServerUrl || mailServerToken == undefined) {
174174
throw new Error(

packages/frontend/src/hooks/useInstantOnboarding.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ export default function useInstantOnboarding(): InstantOnboarding {
7272
*/
7373
const createInstantAccount = useCallback(
7474
async (accountId: number): Promise<T.FullChat['id'] | null> => {
75-
// dcaccount9 is the default QR code which is used if the user
75+
// dcaccount is the default QR code which is used if the user
7676
// didn't scan a code but just clicked the button to create a
7777
// new account on the welcome screen.
78-
let configurationQR = `dcaccount9:${DEFAULT_CHATMAIL_HOSTNAME}`
78+
let configurationQR = `dcaccount:${DEFAULT_CHATMAIL_HOSTNAME}`
7979

8080
if (welcomeQr) {
8181
if (welcomeQr.qr.kind === 'account') {

packages/target-electron/build/gen-electron-builder-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ build['protocols'] = [
5252
{
5353
name: 'QR code data',
5454
role: 'Viewer',
55-
schemes: ['openpgp4fpr', 'dcaccount', 'dcaccount9', 'dclogin'],
55+
schemes: ['openpgp4fpr', 'dcaccount', 'dclogin'],
5656
},
5757
{
5858
name: 'Send Mails via MailTo Scheme',

packages/target-electron/src/open_url.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ if (platform() !== 'linux') {
1717
app.setAsDefaultProtocolClient('openpgp4fpr')
1818
app.setAsDefaultProtocolClient('OPENPGP4FPR')
1919
app.setAsDefaultProtocolClient('dcaccount')
20-
app.setAsDefaultProtocolClient('dcaccount9')
2120
app.setAsDefaultProtocolClient('DCACCOUNT')
2221
app.setAsDefaultProtocolClient('dclogin')
2322
app.setAsDefaultProtocolClient('DCLOGIN')

packages/target-tauri/metainfo.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@
122122
<mediatype>x-scheme-handler/openpgp4fpr</mediatype>
123123
<mediatype>x-scheme-handler/mailto</mediatype>
124124
<mediatype>x-scheme-handler/dcaccount</mediatype>
125-
<mediatype>x-scheme-handler/dcaccount9</mediatype>
126125
<mediatype>x-scheme-handler/dclogin</mediatype>
127126
</provides>
128127
<recommends>

packages/target-tauri/src-tauri/Info.plist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
<array>
3838
<string>openpgp4fpr</string>
3939
<string>dcaccount</string>
40-
<string>dcaccount9</string>
4140
<string>dclogin</string>
4241
</array>
4342
</dict>

packages/target-tauri/src-tauri/src/deeplink.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub async fn handle_deep_link(
6060
if let Some(potential_scheme) = potential_scheme.as_ref() {
6161
if matches!(
6262
potential_scheme.as_str(),
63-
"openpgp4fpr" | "dcaccount" | "dcaccount9" | "dclogin" | "mailto"
63+
"openpgp4fpr" | "dcaccount" | "dclogin" | "mailto"
6464
) || (potential_scheme == "https"
6565
&& deeplink_or_xdc.starts_with("https://i.delta.chat/"))
6666
{
@@ -161,6 +161,5 @@ pub(crate) struct DeepLinkInvocation {
161161
pub fn register() {
162162
register_as_default_handler("openpgp4fpr");
163163
register_as_default_handler("dcaccount");
164-
register_as_default_handler("dcaccount9");
165164
register_as_default_handler("dclogin");
166165
}

packages/target-tauri/src-tauri/windows/hooks.nsi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333

3434
!insertmacro URI_SCHEME "openpgp4fpr"
3535
!insertmacro URI_SCHEME "dcaccount"
36-
!insertmacro URI_SCHEME "dcaccount9"
3736
!insertmacro URI_SCHEME "dclogin"
3837
!insertmacro URI_SCHEME "dcnotification"
3938
!macroend

0 commit comments

Comments
 (0)