Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
to
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
matrix
to
Commits
9750d5e2
Unverified
Commit
9750d5e2
authored
9 months ago
by
Ajay Bura
Committed by
GitHub
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
add cinny deep link
parent
fac2f9bf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/open/clients/Cinny.js
+23
-12
23 additions, 12 deletions
src/open/clients/Cinny.js
with
23 additions
and
12 deletions
src/open/clients/Cinny.js
+
23
−
12
View file @
9750d5e2
...
...
@@ -48,24 +48,35 @@ export class Cinny {
return
Maturity
.
Stable
;
}
// cinny doesn't support deep links yet
getDeepLink
(
platform
,
link
)
{}
getDeepLink
(
platform
,
link
)
{
let
fragmentPath
;
switch
(
link
.
kind
)
{
case
LinkKind
.
User
:
fragmentPath
=
`direct/
${
encodeURIComponent
(
link
.
identifier
)}
`
;
break
;
case
LinkKind
.
Room
:
fragmentPath
=
`home/
${
encodeURIComponent
(
link
.
identifier
)}
`
;
break
;
case
LinkKind
.
Event
:
fragmentPath
=
`home/
${
encodeURIComponent
(
link
.
identifier
)}
/
${
encodeURIComponent
(
link
.
eventId
)}
`
;
break
;
}
if
((
link
.
kind
===
LinkKind
.
Event
||
link
.
kind
===
LinkKind
.
Room
)
&&
link
.
servers
.
length
>
0
)
{
fragmentPath
+=
`?via=
${
link
.
servers
.
map
(
server
=>
encodeURIComponent
(
server
)).
join
(
'
,
'
)}
`
;
}
return
`https://app.cinny.in/
${
fragmentPath
}
`
}
canInterceptMatrixToLinks
(
platform
)
{
return
false
;
}
getLinkInstructions
(
platform
,
link
)
{
return
[
"
While in Home, Click on '+' in the top left corner, then 'Join with address' and paste the
"
,
style
.
code
(
`
${
link
.
identifier
}
`
),
link
.
kind
===
LinkKind
.
User
?
"
username
"
:
"
identifier
"
,
];
}
getLinkInstructions
(
platform
,
link
)
{}
getCopyString
(
platform
,
link
)
{
return
link
.
identifier
;
}
getCopyString
(
platform
,
link
)
{}
getInstallLinks
(
platform
)
{}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment