Merge pull request #245 from krillefear/patch-1

Add deep link for FluffyChat Android and iOS
This commit is contained in:
Bruno Windels 2021-11-24 09:43:08 +01:00 committed by GitHub
commit 4d779d5f52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -73,7 +73,13 @@ export class Fluffychat {
}
}
getDeepLink(platform, link) { }
getDeepLink(platform, link) {
switch (platform) {
case Platform.Android: return `im.fluffychat://chat/${link.identifier}`;
case Platform.iOS: return `im.fluffychat://chat/${link.identifier}`;
default: break;
}
}
canInterceptMatrixToLinks(platform) {
return platform === Platform.Android;
}