From 8458152d53c441b6b41c009742571760b24e957a Mon Sep 17 00:00:00 2001 From: John Detter Date: Tue, 19 Nov 2019 11:35:56 -0800 Subject: [PATCH] Fix ListNotifications not using the user supplied cursor. (#399) --- server/api_notification.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api_notification.go b/server/api_notification.go index 509acbaf5..16120fba9 100644 --- a/server/api_notification.go +++ b/server/api_notification.go @@ -65,7 +65,7 @@ func (s *ApiServer) ListNotifications(ctx context.Context, in *api.ListNotificat cursor := in.GetCacheableCursor() var nc *notificationCacheableCursor if cursor != "" { - nc := ¬ificationCacheableCursor{} + nc = ¬ificationCacheableCursor{} cb, err := base64.RawURLEncoding.DecodeString(cursor) if err != nil { s.logger.Warn("Could not base64 decode notification cursor.", zap.String("cursor", cursor)) -- GitLab