From f0607f16633d266f55a4b08f7edbbc13d08121ae Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 4 Feb 2025 19:37:06 +0200 Subject: Server now also sends the last_read column to the client so the client so the client can use it to persist notifications --- 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 c1dd4cd..6a865d2 100644 --- a/internal/client/ui/core/state/state.go +++ b/internal/client/ui/core/state/state.go @@ -260,6 +260,9 @@ func SendUserDatUpdate() { func UpdateNotifications(info *packet.NotificationsInfo) { for i := 0; i < len(info.Source); i++ { + lastRead := snowflake.ID(info.LastRead[i]) + State.LastReadMessages[info.Source[i]] = &lastRead + ping := info.Pings[i] if ping != nil { State.Notifications[info.Source[i]] = int(*ping) -- cgit v1.3.1