Verify/blacklist devices for all our accounts
This commit is contained in:
@@ -151,7 +151,6 @@ HTile {
|
||||
"Popups/KeyVerificationPopup.qml",
|
||||
{
|
||||
focusOnClosed: nameField,
|
||||
userId: deviceTile.userId,
|
||||
deviceOwner: deviceTile.userId,
|
||||
deviceId: model.id,
|
||||
deviceName: model.display_name,
|
||||
|
@@ -9,7 +9,6 @@ HFlickableColumnPage {
|
||||
id: page
|
||||
|
||||
|
||||
property string userId
|
||||
property string deviceOwner
|
||||
property string deviceOwnerDisplayName
|
||||
property string deviceId
|
||||
@@ -27,10 +26,9 @@ HFlickableColumnPage {
|
||||
onClicked: {
|
||||
loading = true
|
||||
|
||||
py.callClientCoro(
|
||||
userId,
|
||||
"verify_device_id",
|
||||
[deviceOwner, deviceId],
|
||||
py.callCoro(
|
||||
"verify_device",
|
||||
[deviceOwner, deviceId, ed25519Key.replace(/ /g, "")],
|
||||
() => {
|
||||
loading = false
|
||||
page.trustSet(true)
|
||||
@@ -46,10 +44,9 @@ HFlickableColumnPage {
|
||||
onClicked: {
|
||||
loading = true
|
||||
|
||||
py.callClientCoro(
|
||||
userId,
|
||||
"blacklist_device_id",
|
||||
[deviceOwner, deviceId],
|
||||
py.callCoro(
|
||||
"blacklist_device",
|
||||
[deviceOwner, deviceId, ed25519Key.replace(/ /g, "")],
|
||||
() => {
|
||||
loading = false
|
||||
page.trustSet(false)
|
||||
|
@@ -53,7 +53,6 @@ HTile {
|
||||
const item = stackView.push(
|
||||
"DeviceVerification.qml",
|
||||
{
|
||||
userId: deviceTile.userId,
|
||||
deviceOwner: deviceTile.deviceOwner,
|
||||
deviceOwnerDisplayName: deviceTile.deviceOwnerDisplayName,
|
||||
deviceId: model.id,
|
||||
|
@@ -9,7 +9,6 @@ HFlickableColumnPopup {
|
||||
id: popup
|
||||
|
||||
|
||||
property string userId
|
||||
property string deviceOwner
|
||||
property string deviceId
|
||||
property string deviceName
|
||||
@@ -27,10 +26,9 @@ HFlickableColumnPopup {
|
||||
onClicked: {
|
||||
loading = true
|
||||
|
||||
py.callClientCoro(
|
||||
userId,
|
||||
"verify_device_id",
|
||||
[deviceOwner, deviceId],
|
||||
py.callCoro(
|
||||
"verify_device",
|
||||
[deviceOwner, deviceId, ed25519Key.replace(/ /g, "")],
|
||||
() => {
|
||||
if (verifiedCallback) verifiedCallback()
|
||||
popup.close()
|
||||
@@ -46,10 +44,9 @@ HFlickableColumnPopup {
|
||||
onClicked: {
|
||||
loading = true
|
||||
|
||||
py.callClientCoro(
|
||||
userId,
|
||||
"blacklist_device_id",
|
||||
[deviceOwner, deviceId],
|
||||
py.callCoro(
|
||||
"blacklist_device",
|
||||
[deviceOwner, deviceId, ed25519Key.replace(/ /g, "")],
|
||||
() => {
|
||||
if (blacklistedCallback) blacklistedCallback()
|
||||
popup.close()
|
||||
|
Reference in New Issue
Block a user