mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
refactor: remove limit
This commit is contained in:
parent
a641f44486
commit
826b6113f8
@ -40,9 +40,6 @@ func (m *msgServer) RevokeMsg(ctx context.Context, req *msg.RevokeMsgReq) (*msg.
|
||||
if len(msgs) == 0 || msgs[0] == nil {
|
||||
return nil, errs.ErrRecordNotFound.Wrap("msg not found")
|
||||
}
|
||||
if msgs[0].SendID == "" || msgs[0].RecvID == "" {
|
||||
return nil, errs.ErrRecordNotFound.Wrap("sendID or recvID is empty")
|
||||
}
|
||||
// todo: 判断是否已经撤回
|
||||
data, _ := json.Marshal(msgs[0])
|
||||
log.ZInfo(ctx, "GetMsgBySeqs", "conversationID", req.ConversationID, "seq", req.Seq, "msg", string(data))
|
||||
|
@ -82,7 +82,7 @@ func (e *codeError) Is(err error, loose ...bool) bool {
|
||||
}
|
||||
|
||||
func (e *codeError) Error() string {
|
||||
return fmt.Sprintf("[%d]%s", e.code, e.msg)
|
||||
return fmt.Sprintf("%s", e.msg)
|
||||
}
|
||||
|
||||
func Unwrap(err error) error {
|
||||
|
Loading…
x
Reference in New Issue
Block a user