Show E2EE fingerprint in client view
This commit is contained in:
parent
47969e5661
commit
b8ef048a3a
@ -247,6 +247,7 @@ class Client:
|
|||||||
"homeserver": self.homeserver,
|
"homeserver": self.homeserver,
|
||||||
"access_token": self.access_token,
|
"access_token": self.access_token,
|
||||||
"device_id": self.device_id,
|
"device_id": self.device_id,
|
||||||
|
"fingerprint": self.crypto.account.fingerprint if self.crypto else None,
|
||||||
"enabled": self.enabled,
|
"enabled": self.enabled,
|
||||||
"started": self.started,
|
"started": self.started,
|
||||||
"sync": self.sync,
|
"sync": self.sync,
|
||||||
|
@ -679,6 +679,9 @@ components:
|
|||||||
device_id:
|
device_id:
|
||||||
type: string
|
type: string
|
||||||
description: The Matrix device ID corresponding to the access token.
|
description: The Matrix device ID corresponding to the access token.
|
||||||
|
fingerprint:
|
||||||
|
type: string
|
||||||
|
description: The encryption device fingerprint for verification.
|
||||||
enabled:
|
enabled:
|
||||||
type: boolean
|
type: boolean
|
||||||
example: true
|
example: true
|
||||||
|
@ -75,6 +75,7 @@ class Client extends BaseMainView {
|
|||||||
avatar_url: "",
|
avatar_url: "",
|
||||||
access_token: "",
|
access_token: "",
|
||||||
device_id: "",
|
device_id: "",
|
||||||
|
fingerprint: null,
|
||||||
sync: true,
|
sync: true,
|
||||||
autojoin: true,
|
autojoin: true,
|
||||||
enabled: true,
|
enabled: true,
|
||||||
@ -274,6 +275,10 @@ class Client extends BaseMainView {
|
|||||||
<PrefInput rowName="Device ID" type="text" name="device_id"
|
<PrefInput rowName="Device ID" type="text" name="device_id"
|
||||||
value={this.state.device_id} origValue={this.props.entry.device_id}
|
value={this.state.device_id} origValue={this.props.entry.device_id}
|
||||||
placeholder="maubot_F00BAR12" onChange={this.inputChange}/>
|
placeholder="maubot_F00BAR12" onChange={this.inputChange}/>
|
||||||
|
{this.props.entry.fingerprint && <PrefInput
|
||||||
|
rowName="E2EE device fingerprint" type="text" disabled={true} fullWidth={true}
|
||||||
|
value={this.props.entry.fingerprint} className="fingerprint"
|
||||||
|
/>}
|
||||||
<PrefInput rowName="Display name" type="text" name="displayname"
|
<PrefInput rowName="Display name" type="text" name="displayname"
|
||||||
value={this.state.displayname} origValue={this.props.entry.displayname}
|
value={this.state.displayname} origValue={this.props.entry.displayname}
|
||||||
placeholder="My fancy bot" onChange={this.inputChange}/>
|
placeholder="My fancy bot" onChange={this.inputChange}/>
|
||||||
|
@ -36,6 +36,10 @@
|
|||||||
> div.instances
|
> div.instances
|
||||||
+instancelist
|
+instancelist
|
||||||
|
|
||||||
|
input.fingerprint
|
||||||
|
font-family: "Fira Code", monospace
|
||||||
|
font-size: 0.8em
|
||||||
|
|
||||||
@media screen and (max-width: 40rem)
|
@media screen and (max-width: 40rem)
|
||||||
flex-wrap: wrap
|
flex-wrap: wrap
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user