From 0659bdaf81583c4aa7437fd23703f14aa9c4f6e9 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sat, 1 Feb 2025 16:51:10 +0200 Subject: Added a way to display notifications for networks --- internal/client/ui/core/state/state.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/client/ui/core/state/state.go') 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 { -- cgit v1.3.1