diff --git a/modules/chat/api_getlist.go b/modules/chat/api_getlist.go index 4a5d5d895..9eb274e7e 100644 --- a/modules/chat/api_getlist.go +++ b/modules/chat/api_getlist.go @@ -50,13 +50,13 @@ func (this *apiComp) GetList(session comm.IUserSession, req *pb.ChatGetListReq) code = pb.ErrorCode_ReqParameterError return } - if list, err = this.module.modelChat.getChatQueue(req.Channel, session.GetServiecTag(), 0, req.ChannelId); err != nil { + if list, err = this.module.modelChat.getChatQueue(req.Channel, session.GetServiecTag(), "", req.ChannelId); err != nil { code = pb.ErrorCode_DBError return } break case pb.ChatChannel_System: - if list, err = this.module.modelChat.getChatQueue(req.Channel, session.GetServiecTag(), 0, 0); err != nil { + if list, err = this.module.modelChat.getChatQueue(req.Channel, session.GetServiecTag(), "", 0); err != nil { code = pb.ErrorCode_DBError return }