Skip to content
Snippets Groups Projects
Commit 260d2b61 authored by Bruno Windels's avatar Bruno Windels
Browse files

don't use trusted web instance for iOS

as it only intercepts the default app.element.io
parent 163f405a
Branches
Tags
No related merge requests found
...@@ -62,9 +62,12 @@ export class Element { ...@@ -62,9 +62,12 @@ export class Element {
fragmentPath = `room/${link.identifier}/${link.eventId}`; fragmentPath = `room/${link.identifier}/${link.eventId}`;
break; break;
} }
if (platform === Platform.DesktopWeb || platform === Platform.MobileWeb || platform === Platform.iOS) { const isWebPlatform = platform === Platform.DesktopWeb || platform === Platform.MobileWeb;
if (isWebPlatform || platform === Platform.iOS) {
let instanceHost = trustedWebInstances[0]; let instanceHost = trustedWebInstances[0];
if (trustedWebInstances.includes(link.webInstances[this.id])) { // we use app.element.io which iOS will intercept, but it likely won't intercept any other trusted instances
// so only use a preferred web instance for true web links.
if (isWebPlatform && trustedWebInstances.includes(link.webInstances[this.id])) {
instanceHost = link.webInstances[this.id]; instanceHost = link.webInstances[this.id];
} }
return `https://${instanceHost}/#/${fragmentPath}`; return `https://${instanceHost}/#/${fragmentPath}`;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment