mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-01-09 06:37:55 -05:00
ui: Disable device updates for now.
This commit is contained in:
parent
da552973ff
commit
7bb47092ff
@ -119,7 +119,6 @@ class PanCtl:
|
||||
dbus_interface="org.pantalaimon.control.import_keys"
|
||||
)
|
||||
|
||||
|
||||
def export_keys(self, args):
|
||||
try:
|
||||
user, filepath, passphrase = args
|
||||
|
@ -113,18 +113,21 @@ class Devices(dbus.service.Object):
|
||||
def update_devices(self, message):
|
||||
device_store = self.device_list[message.user_id]
|
||||
|
||||
for user_id, device_dict in message.devices.items():
|
||||
for device in device_dict.values():
|
||||
if device.deleted:
|
||||
device_store[user_id].pop(device.id, None)
|
||||
else:
|
||||
device_store[user_id][device.id] = {
|
||||
"user_id": device.user_id,
|
||||
"device_id": device.id,
|
||||
"fingerprint_key": device.ed25519,
|
||||
"sender_key": device.curve25519,
|
||||
"trust_state": TrustState.unset.name,
|
||||
}
|
||||
# TODO the store type got changed to a list, fix adding/removing of
|
||||
# devices.
|
||||
|
||||
# for user_id, device_dict in message.devices.items():
|
||||
# for device in device_dict.values():
|
||||
# if device.deleted:
|
||||
# device_store[user_id].remove(device.id, None)
|
||||
# else:
|
||||
# device_store[user_id][device.id] = {
|
||||
# "user_id": device.user_id,
|
||||
# "device_id": device.id,
|
||||
# "fingerprint_key": device.ed25519,
|
||||
# "sender_key": device.curve25519,
|
||||
# "trust_state": TrustState.unset.name,
|
||||
# }
|
||||
|
||||
|
||||
class Control(dbus.service.Object):
|
||||
|
Loading…
Reference in New Issue
Block a user