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 GitHub
parent c2fd0061b0
commit 2c612ba6d0
11 changed files with 19 additions and 55 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)