From 994ad17fc90f4dd5dbbb971f22cfefac7855c80a Mon Sep 17 00:00:00 2001 From: Krille Fear Date: Sun, 21 Nov 2021 14:02:35 +0100 Subject: [PATCH] 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; }