From 1bc414fabf37db4aa0f355421dcb58f2b2fd9cf9 Mon Sep 17 00:00:00 2001 From: 3nt3 Date: Fri, 14 Oct 2022 16:21:11 +0200 Subject: [PATCH] Implement suggested edits by thibaultamartin Signed-off-by: 3nt3 --- src/open/clients/{cinny.js => Cinny.js} | 40 +++++++------------------ src/open/clients/index.js | 22 +++++++------- 2 files changed, 22 insertions(+), 40 deletions(-) rename src/open/clients/{cinny.js => Cinny.js} (61%) diff --git a/src/open/clients/cinny.js b/src/open/clients/Cinny.js similarity index 61% rename from src/open/clients/cinny.js rename to src/open/clients/Cinny.js index 8e7dac3a..754474ed 100644 --- a/src/open/clients/cinny.js +++ b/src/open/clients/Cinny.js @@ -28,7 +28,7 @@ export class Cinny { return "images/client-icons/cinny.svg"; } get author() { - return "???"; + return "Copyright (c) 2021-present Ajay Bura (ajbura) and cinny contributors"; } get homepage() { return "https://cinny.in"; @@ -45,44 +45,26 @@ export class Cinny { return "A Matrix client focusing primarily on simple, elegant and secure interface. The main goal is to have an instant messaging application that is easy on people and has a modern touch."; } getMaturity(platform) { - return Maturity.Beta; - } - getDeepLink(platform, link) { - // cinny doesn't support deep links (?) - return; + return Maturity.Stable; } + + // cinny doesn't support deep links yet + getDeepLink(platform, link) {} + canInterceptMatrixToLinks(platform) { return false; } getLinkInstructions(platform, link) { - switch (platform.kind) { - case Platform.DesktopWeb: - return [ - "Go to https://app.cinny.in", - "Click on '+' in the top left corner and paste the " + - (link.kind === LinkKind.User - ? "username" - : "identifier"), - ]; - default: - return [ - "Click on '+' in the top left corner and paste the " + - (link.kind === LinkKind.User - ? "username" - : "identifier"), - ]; - } + return [ + "Click on '+' in the top left corner and paste the ", + style.code(`${link.identifier} `), + link.kind === LinkKind.User ? "username" : "identifier", + ]; } getCopyString(platform, link) { return link.identifier; - switch (link.kind) { - case LinkKind.User: - return `/invite ${link.identifier}`; - case LinkKind.Room: - return `/join ${link.identifier}`; - } } getInstallLinks(platform) {} diff --git a/src/open/clients/index.js b/src/open/clients/index.js index a07c57b9..2cf682f2 100644 --- a/src/open/clients/index.js +++ b/src/open/clients/index.js @@ -14,17 +14,17 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { Element } from "./Element.js"; -import { Weechat } from "./Weechat.js"; -import { Nheko } from "./Nheko.js"; -import { Fractal } from "./Fractal.js"; -import { Quaternion } from "./Quaternion.js"; -import { Tensor } from "./Tensor.js"; -import { Fluffychat } from "./Fluffychat.js"; -import { NeoChat } from "./NeoChat.js"; -import { Syphon } from "./Syphon.js"; -import { Thunderbird } from "./Thunderbird.js"; -import { Cinny } from "./cinny.js"; +import {Element} from "./Element.js"; +import {Weechat} from "./Weechat.js"; +import {Nheko} from "./Nheko.js"; +import {Fractal} from "./Fractal.js"; +import {Quaternion} from "./Quaternion.js"; +import {Tensor} from "./Tensor.js"; +import {Fluffychat} from "./Fluffychat.js"; +import {NeoChat} from "./NeoChat.js"; +import {Syphon} from "./Syphon.js"; +import {Thunderbird} from "./Thunderbird.js"; +import {Cinny} from "./cinny.js" export function createClients() { return [