Skip to content

Commit

Permalink
Implement suggested edits by thibaultamartin
Browse files Browse the repository at this point in the history
Signed-off-by: 3nt3 <[email protected]>
  • Loading branch information
3nt3 committed Oct 14, 2022
1 parent d174482 commit 1bc414f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 40 deletions.
40 changes: 11 additions & 29 deletions src/open/clients/cinny.js → src/open/clients/Cinny.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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) {}
Expand Down
22 changes: 11 additions & 11 deletions src/open/clients/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down

0 comments on commit 1bc414f

Please sign in to comment.