1.未读数优化
This commit is contained in:
zhongzb
2023-08-20 18:55:22 +08:00
parent 68a4296b7b
commit cf707a4473
4 changed files with 5 additions and 13 deletions

View File

@@ -22,6 +22,4 @@ public class ChatMessageReadInfoReq {
@ApiModelProperty("消息id集合只查本人")
@Size(max = 20)
private List<Long> msgIds;
@ApiModelProperty("是否需要查未读数")
private boolean needUnread;
}

View File

@@ -250,7 +250,7 @@ public class ChatServiceImpl implements ChatService {
messages.forEach(message -> {
AssertUtil.equal(uid, message.getFromUid(), "只能查询自己发送的消息");
});
return contactService.getMsgReadInfo(messages, request.isNeedUnread()).values();
return contactService.getMsgReadInfo(messages).values();
}
@Override