summaryrefslogtreecommitdiff
path: root/internal/client/ui/core/state/state.go
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-02-01 16:51:10 +0200
committerKyren223 <Kyren223@proton.me>2025-02-01 16:51:10 +0200
commit0659bdaf81583c4aa7437fd23703f14aa9c4f6e9 (patch)
tree034a254a8b730b1af491123c1d181a6198911fcd /internal/client/ui/core/state/state.go
parentac01dff4e7b85198bd6c5179da93284cc57a96a8 (diff)
Added a way to display notifications for networks
Diffstat (limited to 'internal/client/ui/core/state/state.go')
-rw-r--r--internal/client/ui/core/state/state.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/client/ui/core/state/state.go b/internal/client/ui/core/state/state.go
index efa4732..ee61a2c 100644
--- a/internal/client/ui/core/state/state.go
+++ b/internal/client/ui/core/state/state.go
@@ -29,6 +29,8 @@ type state struct {
Members map[snowflake.ID]map[snowflake.ID]data.Member // key is network id then user id
Users map[snowflake.ID]data.User // key is user id
Trusteds map[snowflake.ID]ed25519.PublicKey // key is user id
+
+ Notifications map[snowflake.ID]int // key is frequency id or receiver id
}
var State state = state{
@@ -40,6 +42,7 @@ var State state = state{
Members: map[snowflake.ID]map[snowflake.ID]data.Member{},
Users: map[snowflake.ID]data.User{},
Trusteds: map[snowflake.ID]ed25519.PublicKey{},
+ Notifications: map[snowflake.ID]int{},
}
type UserData struct {