From 994ad17fc90f4dd5dbbb971f22cfefac7855c80a Mon Sep 17 00:00:00 2001 From: Krille Fear Date: Sun, 21 Nov 2021 14:02:35 +0100 Subject: [PATCH 1/2] Add deep link for FluffyChat Android and iOS --- src/open/clients/Fluffychat.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/open/clients/Fluffychat.js b/src/open/clients/Fluffychat.js index 9955c6a..7990ca0 100644 --- a/src/open/clients/Fluffychat.js +++ b/src/open/clients/Fluffychat.js @@ -73,7 +73,13 @@ export class Fluffychat { } } - getDeepLink(platform, link) { } + getDeepLink(platform, link) { + switch (platform) { + case Platform.Android: return `im.fluffychat://${link.identifier}`; + case Platform.iOS: return `im.fluffychat://${link.identifier}`; + default: break; + } + } canInterceptMatrixToLinks(platform) { return platform === Platform.Android; } From d52e84ee23a3d89daf211dcd75056f1cf160066c Mon Sep 17 00:00:00 2001 From: Krille Fear Date: Mon, 22 Nov 2021 12:44:49 +0100 Subject: [PATCH 2/2] Prefix with /chat/ to make it a valid Uri --- src/open/clients/Fluffychat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/open/clients/Fluffychat.js b/src/open/clients/Fluffychat.js index 7990ca0..6e51b71 100644 --- a/src/open/clients/Fluffychat.js +++ b/src/open/clients/Fluffychat.js @@ -75,8 +75,8 @@ export class Fluffychat { getDeepLink(platform, link) { switch (platform) { - case Platform.Android: return `im.fluffychat://${link.identifier}`; - case Platform.iOS: return `im.fluffychat://${link.identifier}`; + case Platform.Android: return `im.fluffychat://chat/${link.identifier}`; + case Platform.iOS: return `im.fluffychat://chat/${link.identifier}`; default: break; } }