Add lastSeenIp/Date to Device ListItem
This commit is contained in:
parent
1a90bb4331
commit
d1dfd2673f
|
@ -150,6 +150,9 @@ class Backend(QObject):
|
||||||
|
|
||||||
tcl = lambda user: cl[f"@test_{user}:matrix.org"]
|
tcl = lambda user: cl[f"@test_{user}:matrix.org"]
|
||||||
|
|
||||||
|
import json
|
||||||
|
jd = lambda obj: print(json.dumps(obj, indent=4, ensure_ascii=False))
|
||||||
|
|
||||||
import pdb
|
import pdb
|
||||||
from PyQt5.QtCore import pyqtRemoveInputHook
|
from PyQt5.QtCore import pyqtRemoveInputHook
|
||||||
pyqtRemoveInputHook()
|
pyqtRemoveInputHook()
|
||||||
|
|
|
@ -57,6 +57,8 @@ class Device(ListItem):
|
||||||
ed25519Key: str = ""
|
ed25519Key: str = ""
|
||||||
displayName: Optional[str] = None
|
displayName: Optional[str] = None
|
||||||
trust: Trust = Trust.undecided
|
trust: Trust = Trust.undecided
|
||||||
|
lastSeenIp: Optional[str] = None
|
||||||
|
lastSeenDate: Optional[QDateTime] = None
|
||||||
|
|
||||||
|
|
||||||
class Account(ListItem):
|
class Account(ListItem):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user