Skip to content

Commit 1bc414f

Browse files
committed
Implement suggested edits by thibaultamartin
Signed-off-by: 3nt3 <gott@3nt3.de>
1 parent d174482 commit 1bc414f

2 files changed

Lines changed: 22 additions & 40 deletions

File tree

Lines changed: 11 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class Cinny {
2828
return "images/client-icons/cinny.svg";
2929
}
3030
get author() {
31-
return "???";
31+
return "Copyright (c) 2021-present Ajay Bura (ajbura) and cinny contributors";
3232
}
3333
get homepage() {
3434
return "https://cinny.in";
@@ -45,44 +45,26 @@ export class Cinny {
4545
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.";
4646
}
4747
getMaturity(platform) {
48-
return Maturity.Beta;
49-
}
50-
getDeepLink(platform, link) {
51-
// cinny doesn't support deep links (?)
52-
return;
48+
return Maturity.Stable;
5349
}
50+
51+
// cinny doesn't support deep links yet
52+
getDeepLink(platform, link) {}
53+
5454
canInterceptMatrixToLinks(platform) {
5555
return false;
5656
}
5757

5858
getLinkInstructions(platform, link) {
59-
switch (platform.kind) {
60-
case Platform.DesktopWeb:
61-
return [
62-
"Go to https://app.cinny.in",
63-
"Click on '+' in the top left corner and paste the " +
64-
(link.kind === LinkKind.User
65-
? "username"
66-
: "identifier"),
67-
];
68-
default:
69-
return [
70-
"Click on '+' in the top left corner and paste the " +
71-
(link.kind === LinkKind.User
72-
? "username"
73-
: "identifier"),
74-
];
75-
}
59+
return [
60+
"Click on '+' in the top left corner and paste the ",
61+
style.code(`${link.identifier} `),
62+
link.kind === LinkKind.User ? "username" : "identifier",
63+
];
7664
}
7765

7866
getCopyString(platform, link) {
7967
return link.identifier;
80-
switch (link.kind) {
81-
case LinkKind.User:
82-
return `/invite ${link.identifier}`;
83-
case LinkKind.Room:
84-
return `/join ${link.identifier}`;
85-
}
8668
}
8769

8870
getInstallLinks(platform) {}

src/open/clients/index.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
import { Element } from "./Element.js";
18-
import { Weechat } from "./Weechat.js";
19-
import { Nheko } from "./Nheko.js";
20-
import { Fractal } from "./Fractal.js";
21-
import { Quaternion } from "./Quaternion.js";
22-
import { Tensor } from "./Tensor.js";
23-
import { Fluffychat } from "./Fluffychat.js";
24-
import { NeoChat } from "./NeoChat.js";
25-
import { Syphon } from "./Syphon.js";
26-
import { Thunderbird } from "./Thunderbird.js";
27-
import { Cinny } from "./cinny.js";
17+
import {Element} from "./Element.js";
18+
import {Weechat} from "./Weechat.js";
19+
import {Nheko} from "./Nheko.js";
20+
import {Fractal} from "./Fractal.js";
21+
import {Quaternion} from "./Quaternion.js";
22+
import {Tensor} from "./Tensor.js";
23+
import {Fluffychat} from "./Fluffychat.js";
24+
import {NeoChat} from "./NeoChat.js";
25+
import {Syphon} from "./Syphon.js";
26+
import {Thunderbird} from "./Thunderbird.js";
27+
import {Cinny} from "./cinny.js"
2828

2929
export function createClients() {
3030
return [

0 commit comments

Comments
 (0)