From ec138dbe4f112cf1cca6d4492e486b9c3562b727 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Wed, 14 Jul 2021 14:56:43 -0400 Subject: [PATCH] go back to /message/inbox and track pointer ourselves --- internal/worker/notifications.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/worker/notifications.go b/internal/worker/notifications.go index 08ed73a..b3617ba 100644 --- a/internal/worker/notifications.go +++ b/internal/worker/notifications.go @@ -248,7 +248,7 @@ func (nc *notificationsConsumer) Consume(delivery rmq.Delivery) { nc.logger.WithFields(logrus.Fields{ "accountID": id, }).Debug("fetching message inbox") - msgs, err := rac.MessageUnread(account.LastMessageID) + msgs, err := rac.MessageInbox(account.LastMessageID) if err != nil { nc.logger.WithFields(logrus.Fields{