Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • matrix/to
1 result
Select Git revision
Show changes
Commits on Source (8)
......@@ -48,24 +48,35 @@ export class Cinny {
return Maturity.Stable;
}
// cinny doesn't support deep links yet
getDeepLink(platform, link) {}
getDeepLink(platform, link) {
let fragmentPath;
switch (link.kind) {
case LinkKind.User:
fragmentPath = `direct/create?userId=${encodeURIComponent(link.identifier)}`;
break;
case LinkKind.Room:
fragmentPath = `home/${encodeURIComponent(link.identifier)}`;
break;
case LinkKind.Event:
fragmentPath = `home/${encodeURIComponent(link.identifier)}/${encodeURIComponent(link.eventId)}`;
break;
}
if ((link.kind === LinkKind.Event || link.kind === LinkKind.Room) && link.servers.length > 0) {
fragmentPath += `?via=${link.servers.map(server => encodeURIComponent(server)).join(',')}`;
}
return `https://app.cinny.in/${fragmentPath}`
}
canInterceptMatrixToLinks(platform) {
return false;
}
getLinkInstructions(platform, link) {
return [
"While in Home, Click on '+' in the top left corner, then 'Join with address' and paste the ",
style.code(`${link.identifier} `),
link.kind === LinkKind.User ? "username" : "identifier",
];
}
getLinkInstructions(platform, link) {}
getCopyString(platform, link) {
return link.identifier;
}
getCopyString(platform, link) {}
getInstallLinks(platform) {}
......
......@@ -24,11 +24,39 @@ export class Fractal {
get name() { return "Fractal"; }
get icon() { return "images/client-icons/fractal.svg"; }
get author() { return "Daniel Garcia Moreno"; }
get homepage() { return "https://gitlab.gnome.org/GNOME/fractal"; }
get homepage() { return "https://gitlab.gnome.org/World/fractal"; }
get platforms() { return [Platform.Linux]; }
get description() { return 'GNOME client, suitable for desktop and mobile. Written in Rust.'; }
getMaturity(platform) { return Maturity.Beta; }
getDeepLink(platform, link) {}
getDeepLink(platform, link) {
if (platform === Platform.Linux) {
let identifier = encodeURIComponent(link.identifier.substring(1));
let isRoomid = link.identifier.substring(0, 1) === '!';
let fragmentPath;
switch (link.kind) {
case LinkKind.User:
fragmentPath = `u/${identifier}?action=chat`;
break;
case LinkKind.Room:
case LinkKind.Event:
if (isRoomid)
fragmentPath = `roomid/${identifier}`;
else
fragmentPath = `r/${identifier}`;
if (link.kind === LinkKind.Event)
fragmentPath += `/e/${encodeURIComponent(link.eventId.substring(1))}`;
fragmentPath += '?action=join';
fragmentPath += link.servers.map(server => `&via=${encodeURIComponent(server)}`).join('');
break;
case LinkKind.Group:
return;
}
return `matrix:${fragmentPath}`;
}
}
canInterceptMatrixToLinks(platform) { return false; }
getLinkInstructions(platform, link) {
......