mirror of
https://github.com/bitwarden/mobile
synced 2025-12-17 16:53:26 +00:00
fix for establishing Send url in cloud vs on-prem (#1311)
This commit is contained in:
@@ -182,7 +182,7 @@ namespace Bit.App.Utilities
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var platformUtilsService = ServiceContainer.Resolve<IPlatformUtilsService>("platformUtilsService");
|
var platformUtilsService = ServiceContainer.Resolve<IPlatformUtilsService>("platformUtilsService");
|
||||||
await platformUtilsService.CopyToClipboardAsync(AppHelpers.GetSendUrl(send));
|
await platformUtilsService.CopyToClipboardAsync(GetSendUrl(send));
|
||||||
platformUtilsService.ShowToast("info", null,
|
platformUtilsService.ShowToast("info", null,
|
||||||
string.Format(AppResources.ValueHasBeenCopied, AppResources.SendLink));
|
string.Format(AppResources.ValueHasBeenCopied, AppResources.SendLink));
|
||||||
}
|
}
|
||||||
@@ -204,7 +204,12 @@ namespace Bit.App.Utilities
|
|||||||
private static string GetSendUrl(SendView send)
|
private static string GetSendUrl(SendView send)
|
||||||
{
|
{
|
||||||
var environmentService = ServiceContainer.Resolve<IEnvironmentService>("environmentService");
|
var environmentService = ServiceContainer.Resolve<IEnvironmentService>("environmentService");
|
||||||
return environmentService.BaseUrl + "/#/send/" + send.AccessId + "/" + send.UrlB64Key;
|
var webVaultUrl = environmentService.GetWebVaultUrl();
|
||||||
|
if (webVaultUrl != null)
|
||||||
|
{
|
||||||
|
return webVaultUrl + "/#/send/" + send.AccessId + "/" + send.UrlB64Key;
|
||||||
|
}
|
||||||
|
return "https://send.bitwarden.com/#" + send.AccessId + "/" + send.UrlB64Key;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static async Task<bool> RemoveSendPasswordAsync(string sendId)
|
public static async Task<bool> RemoveSendPasswordAsync(string sendId)
|
||||||
|
|||||||
Reference in New Issue
Block a user