Add deep link for FluffyChat Android and iOS

This commit is contained in:
Krille Fear 2021-11-21 14:02:35 +01:00 committed by GitHub
parent 7d22a57874
commit 994ad17fc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) { canInterceptMatrixToLinks(platform) {
return platform === Platform.Android; return platform === Platform.Android;
} }