Skip to content

Commit 7b62332

Browse files
authored
Add the Cinny client (#286)
* Add the Cinny client Signed-off-by: 3nt3 <[email protected]> * Implement suggested edits by thibaultamartin Signed-off-by: 3nt3 <[email protected]> * fix instructions Signed-off-by: 3nt3 <[email protected]> * address things brought up in PR Signed-off-by: 3nt3 <[email protected]> --------- Signed-off-by: 3nt3 <[email protected]>
1 parent 2cf8119 commit 7b62332

File tree

3 files changed

+94
-0
lines changed

3 files changed

+94
-0
lines changed

images/client-icons/cinny.svg

+19
Loading

src/open/clients/Cinny.js

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
/*
2+
Copyright 2020 The Matrix.org Foundation C.I.C.
3+
Copyright 2022 3nt3 <[email protected]>
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
*/
17+
18+
import { Maturity, Platform, LinkKind, FlathubLink, style } from "../types.js";
19+
20+
export class Cinny {
21+
get id() {
22+
return "cinny";
23+
}
24+
get name() {
25+
return "Cinny";
26+
}
27+
get icon() {
28+
return "images/client-icons/cinny.svg";
29+
}
30+
get author() {
31+
return "Copyright (c) 2021-present Ajay Bura (ajbura) and contributors";
32+
}
33+
get homepage() {
34+
return "https://cinny.in";
35+
}
36+
get platforms() {
37+
return [
38+
Platform.DesktopWeb,
39+
Platform.Linux,
40+
Platform.macOS,
41+
Platform.Windows,
42+
];
43+
}
44+
get description() {
45+
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.";
46+
}
47+
getMaturity(platform) {
48+
return Maturity.Stable;
49+
}
50+
51+
// cinny doesn't support deep links yet
52+
getDeepLink(platform, link) {}
53+
54+
canInterceptMatrixToLinks(platform) {
55+
return false;
56+
}
57+
58+
getLinkInstructions(platform, link) {
59+
return [
60+
"While in Home, Click on '+' in the top left corner, then 'Join with address' and paste the ",
61+
style.code(`${link.identifier} `),
62+
link.kind === LinkKind.User ? "username" : "identifier",
63+
];
64+
}
65+
66+
getCopyString(platform, link) {
67+
return link.identifier;
68+
}
69+
70+
getInstallLinks(platform) {}
71+
72+
getPreferredWebInstance(link) {}
73+
}

src/open/clients/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import {Fluffychat} from "./Fluffychat.js";
2424
import {NeoChat} from "./NeoChat.js";
2525
import {Syphon} from "./Syphon.js";
2626
import {Thunderbird} from "./Thunderbird.js";
27+
import {Cinny} from "./Cinny.js"
2728

2829
export function createClients() {
2930
return [
@@ -37,5 +38,6 @@ export function createClients() {
3738
new NeoChat(),
3839
new Syphon(),
3940
new Thunderbird(),
41+
new Cinny(),
4042
];
4143
}

0 commit comments

Comments
 (0)