chore: update deep link to status-app on Windows
This commit is contained in:
parent
92bd3e4999
commit
d04e121ab5
|
@ -8,7 +8,7 @@ import ../../../app_service/service/accounts/utils
|
|||
logScope:
|
||||
topics = "urls-manager"
|
||||
|
||||
const StatusInternalLink = "status-im"
|
||||
const StatusInternalLink = "status-app"
|
||||
const StatusExternalLink = "join.status.im"
|
||||
|
||||
const UriFormatUserProfile = StatusInternalLink & "://u/"
|
||||
|
|
|
@ -229,7 +229,7 @@ const asyncGetLinkPreviewDataTask: Task = proc(argEncoded: string) {.gcsafe, nim
|
|||
|
||||
#2. Process whitelisted url
|
||||
#status deep links are handled internally
|
||||
if domain == "status-im" or domain == "join.status.im":
|
||||
if domain == "status-app" or domain == "join.status.im":
|
||||
responseJson["success"] = %true
|
||||
responseJson["isStatusDeepLink"] = %true
|
||||
responseJson["result"] = %*{
|
||||
|
|
|
@ -48,7 +48,7 @@ type StatusDesktopConfig = object
|
|||
abbr: "d" .}: string
|
||||
uri* {.
|
||||
defaultValue: ""
|
||||
desc: "status-im:// URI to open a chat or other"
|
||||
desc: "status-app:// URI to open a chat or other"
|
||||
name: "uri" .}: string
|
||||
|
||||
|
||||
|
|
|
@ -74,10 +74,10 @@ Type: files; Name: "{userdesktop}\{#Name}"
|
|||
Type: files; Name: "{commondesktop}\{#Name}"
|
||||
|
||||
[Registry]
|
||||
Root: HKCR; Subkey: "status-im"; ValueType: "string"; ValueData: "URL:status-im Protocol"; Flags: uninsdeletekey
|
||||
Root: HKCR; Subkey: "status-im"; ValueType: "string"; ValueName: "URL Protocol"; ValueData: ""
|
||||
Root: HKCR; Subkey: "status-im\DefaultIcon"; ValueType: "string"; ValueData: "{app}\Status.exe,1"
|
||||
Root: HKCR; Subkey: "status-im\shell\open\command"; ValueType: "string"; ValueData: """{app}\bin\Status.exe"" ""--uri=%1"""
|
||||
Root: HKCR; Subkey: "status-app"; ValueType: "string"; ValueData: "URL:status-app Protocol"; Flags: uninsdeletekey
|
||||
Root: HKCR; Subkey: "status-app"; ValueType: "string"; ValueName: "URL Protocol"; ValueData: ""
|
||||
Root: HKCR; Subkey: "status-app\DefaultIcon"; ValueType: "string"; ValueData: "{app}\Status.exe,1"
|
||||
Root: HKCR; Subkey: "status-app\shell\open\command"; ValueType: "string"; ValueData: """{app}\bin\Status.exe"" ""--uri=%1"""
|
||||
|
||||
[Code]
|
||||
function IsAppRunning(const FileName : string): Boolean;
|
||||
|
|
|
@ -156,8 +156,8 @@ QtObject {
|
|||
}
|
||||
|
||||
function linkifyAndXSS(inputText) {
|
||||
//URLs starting with http://, https://, ftp:// or status-im://
|
||||
var replacePattern1 = /(\b(https?|ftp|status-im):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;\(\)]*[-A-Z0-9+&@#\/%=~_|])/gim;
|
||||
//URLs starting with http://, https://, ftp:// or status-app://
|
||||
var replacePattern1 = /(\b(https?|ftp|status-app):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;\(\)]*[-A-Z0-9+&@#\/%=~_|])/gim;
|
||||
var replacedText = inputText.replace(replacePattern1, "<a href='$1'>$1</a>");
|
||||
|
||||
//URLs starting with "www." (without // before it, or it'd re-link the ones done above).
|
||||
|
|
|
@ -802,7 +802,7 @@ QtObject {
|
|||
|
||||
readonly property int repeatHeaderInterval: 2
|
||||
|
||||
readonly property string deepLinkPrefix: 'status-im://'
|
||||
readonly property string deepLinkPrefix: 'status-app://'
|
||||
readonly property string joinStatusLink: 'join.status.im'
|
||||
readonly property string communityLinkPrefix: 'https://join.status.im/c/'
|
||||
readonly property string userLinkPrefix: 'https://join.status.im/u/'
|
||||
|
|
Loading…
Reference in New Issue