Skip to content

Commit

Permalink
fix: remove repeat append logic. (#2400)
Browse files Browse the repository at this point in the history
  • Loading branch information
mo3et authored Jul 8, 2024
1 parent cc2f993 commit 407a117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/common/storage/database/mgo/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package mgo
import (
"context"
"fmt"
"time"

"github.com/openimsdk/open-im-server/v3/pkg/common/storage/database"
"github.com/openimsdk/open-im-server/v3/pkg/common/storage/model"
"github.com/openimsdk/tools/utils/datautil"
"time"

"github.com/openimsdk/protocol/constant"
"github.com/openimsdk/protocol/msg"
Expand Down Expand Up @@ -358,7 +359,6 @@ func (m *MsgMgo) SearchMessage(ctx context.Context, req *msg.SearchMessageReq) (
msgInfo.Msg.ContentType = constant.MsgRevokeNotification
msgInfo.Msg.Content = string(content)
}
msgs = append(msgs, msgInfo)
}
//start := (req.Pagination.PageNumber - 1) * req.Pagination.ShowNumber
//n := int32(len(msgs))
Expand Down

0 comments on commit 407a117

Please sign in to comment.