From a8ab92b4a8dcc1afe59ab05f50f7188c19574f8f Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Mon, 26 Jun 2023 20:29:49 +0800 Subject: [PATCH] seq --- internal/rpc/msg/as_read.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/rpc/msg/as_read.go b/internal/rpc/msg/as_read.go index 21090e7cd..f34e5fd2b 100644 --- a/internal/rpc/msg/as_read.go +++ b/internal/rpc/msg/as_read.go @@ -2,7 +2,6 @@ package msg import ( "context" - "errors" "github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant" "github.com/OpenIMSDK/Open-IM-Server/pkg/common/log" @@ -85,7 +84,7 @@ func (m *msgServer) MarkMsgsAsRead(ctx context.Context, req *msg.MarkMsgsAsReadR return } currentHasReadSeq, err := m.MsgDatabase.GetHasReadSeq(ctx, req.UserID, req.ConversationID) - if err != nil && errors.Unwrap(err) != redis.Nil { + if err != nil && errs.Unwrap(err) != redis.Nil { return } if hasReadSeq > currentHasReadSeq {