summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-07-15 20:26:09 +0300
committerKyren223 <Kyren223@proton.me>2025-07-19 18:32:12 +0300
commitcb3c86624821a3f5e7faf2d6a80cdd760ba837ad (patch)
tree20580f8fcd7e0a2da0d6688d3711f16fd3f64292
parent8f58905364915fce4929649afe4835358d9d831b (diff)
Made ci pass
-rw-r--r--internal/client/ui/core/core.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/client/ui/core/core.go b/internal/client/ui/core/core.go
index 8706988..96f1449 100644
--- a/internal/client/ui/core/core.go
+++ b/internal/client/ui/core/core.go
@@ -418,10 +418,11 @@ func (m *Model) updateConnected(message tea.Msg) tea.Cmd {
if m.state == ConnectedReceivedTos {
m.state = ConnectedAcceptedTos
assert.Assert(m.tosHash != "", "hash must have been set by the TosInfo")
- config.UseCache(func(cache *config.Cache) {
+ err := config.UseCache(func(cache *config.Cache) {
server := config.ReadConfig().ServerName
cache.TosHashes[server] = m.tosHash
})
+ log.Println("unable to cache TOS acceptance: ", err)
return gateway.Send(&packet.AcceptTos{
IAgreeToTheTermsOfServiceAndPrivacyPolicy: true,
})