fix: del login Policy (#2825)

* fix: del login Policy

* feat: offline push

* feat: offline push

* fix: err

* fix: err
This commit is contained in:
icey-yu
2024-11-22 15:49:16 +08:00
committed by OpenIM-Robot
parent eb598ec0e6
commit 7881c8c89a
11 changed files with 22 additions and 57 deletions
+1 -1
View File
@@ -372,7 +372,7 @@ func (db *commonMsgDatabase) getMsgBySeqsRange(ctx context.Context, userID strin
// This ensures that their message retrieval starts from the point they joined.
func (db *commonMsgDatabase) GetMsgBySeqsRange(ctx context.Context, userID string, conversationID string, begin, end, num, userMaxSeq int64) (int64, int64, []*sdkws.MsgData, error) {
userMinSeq, err := db.seqUser.GetUserMinSeq(ctx, conversationID, userID)
if err != nil && errs.Unwrap(err) != redis.Nil {
if err != nil && errors.Is(err, redis.Nil) {
return 0, 0, nil, err
}
minSeq, err := db.seqConversation.GetMinSeq(ctx, conversationID)