diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-02-04 19:37:06 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-02-04 19:37:06 +0200 |
| commit | f0607f16633d266f55a4b08f7edbbc13d08121ae (patch) | |
| tree | 168d1e6c46ada637bba76c6a4bd5735af1a4e02a /internal/client/ui | |
| parent | 752403fd523f287020dfcc6cdd3bf6d304365672 (diff) | |
Server now also sends the last_read column to the client so the client
so the client can use it to persist notifications
Diffstat (limited to 'internal/client/ui')
| -rw-r--r-- | internal/client/ui/core/state/state.go | 3 |
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 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) |
