Open lovemianhuatang opened 3 months ago
If you don't call the method with maxCount
, the param is set to 1 by default, you can set it to null explicitly, so turms-server will use the default max limit count set by the property turms.service.message.default-available-messages-number-with-total
.
我是想查total的总数,目前只会用第一条message的senderId来计算total,如果第一条是自己发送的,total就为0了; 预期应该要返回对方的给我发送的message total ,而不是自己的
@JamesChenX 我没传maxCount,maxCount使用的是默认的1,因为我只想查询消息的total
我的预期:
还有另外一个需求:total的计算希望能支持排除系统消息或召回消息的选项。
我开启了turms.service.message.use-conversation-id=true。
messageService.queryMessagesWithTotal 返回的total,好像只查询了第一条的Message的senderId。
clientUserOne(userId=999)的total=0 符合预期吗?