File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
src/Simplex/Messaging/Agent Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -512,6 +512,8 @@ <h2 class="text-xl font-bold">If you already installed SimpleX Chat for the term
512
512
element . innerHTML = 'This is a one-time link of the SimpleX network user'
513
513
} else if ( url . includes ( '/c' ) ) {
514
514
element . innerHTML = 'This is a public channel address on SimpleX network'
515
+ } else if ( url . includes ( '/r' ) ) {
516
+ element . innerHTML = 'This is a chat relay address on SimpleX network'
515
517
}
516
518
}
517
519
</ script >
Original file line number Diff line number Diff line change @@ -103,6 +103,7 @@ generateSite si onionHost sitePath = do
103
103
createLinkPage " a"
104
104
createLinkPage " c"
105
105
createLinkPage " g"
106
+ createLinkPage " r"
106
107
createLinkPage " i"
107
108
logInfo $ " Generated static site contents at " <> tshow sitePath
108
109
where
Original file line number Diff line number Diff line change @@ -1445,7 +1445,7 @@ instance ConnectionModeI c => ToField (ConnShortLink c) where toField = toField
1445
1445
1446
1446
instance (Typeable c , ConnectionModeI c ) => FromField (ConnShortLink c ) where fromField = blobFieldDecoder strDecode
1447
1447
1448
- data ContactConnType = CCTContact | CCTChannel | CCTGroup deriving (Eq , Show )
1448
+ data ContactConnType = CCTContact | CCTChannel | CCTGroup | CCTRelay deriving (Eq , Show )
1449
1449
1450
1450
data AConnShortLink = forall m . ConnectionModeI m => ACSL (SConnectionMode m ) (ConnShortLink m )
1451
1451
@@ -1593,6 +1593,7 @@ ctTypeP = \case
1593
1593
' A' -> pure CCTContact
1594
1594
' C' -> pure CCTChannel
1595
1595
' G' -> pure CCTGroup
1596
+ ' R' -> pure CCTRelay
1596
1597
_ -> fail " unknown contact address type"
1597
1598
{-# INLINE ctTypeP #-}
1598
1599
@@ -1601,6 +1602,7 @@ ctTypeChar = \case
1601
1602
CCTContact -> ' A'
1602
1603
CCTChannel -> ' C'
1603
1604
CCTGroup -> ' G'
1605
+ CCTRelay -> ' R'
1604
1606
{-# INLINE ctTypeChar #-}
1605
1607
1606
1608
-- the servers passed to this function should be all preset servers, not servers configured by the user.
You can’t perform that action at this time.
0 commit comments