Add lastsynced and websocket status to vault status

This commit is contained in:
Bernd Schoolmann 2023-12-26 21:50:15 +01:00
parent 4dd2d3330b
commit c862a1a5f8
No known key found for this signature in database

View File

@ -190,6 +190,8 @@ func handleVaultStatus(request messages.IPCMessage, cfg *config.Config, vault *v
vaultStatus.Locked = cfg.IsLocked()
vaultStatus.NumberOfLogins = len(vault.GetLogins())
vaultStatus.NumberOfNotes = len(vault.GetNotes())
vaultStatus.LastSynced = vault.GetLastSynced()
vaultStatus.WebsockedConnected = vault.IsWebsocketConnected()
response, err = messages.IPCMessageFromPayload(vaultStatus)
return
}