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
d2219ba4
Unverified
Commit
d2219ba4
authored
8 months ago
by
Will Hunt
Committed by
GitHub
8 months ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #347 from ajbura/cinny-deep-liink
Cinny deep link
parents
a51e28e3
e97ac79e
Branches
Branches containing commit
Tags
Tags containing commit
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 @
d2219ba4
...
@@ -48,24 +48,35 @@ export class Cinny {
...
@@ -48,24 +48,35 @@ export class Cinny {
return
Maturity
.
Stable
;
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/create?userId=
${
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
)
{
canInterceptMatrixToLinks
(
platform
)
{
return
false
;
return
false
;
}
}
getLinkInstructions
(
platform
,
link
)
{
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
"
,
];
}
getCopyString
(
platform
,
link
)
{
getCopyString
(
platform
,
link
)
{}
return
link
.
identifier
;
}
getInstallLinks
(
platform
)
{}
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