fix: 修复IM新用户与自己对话问题

This commit is contained in:
chc
2023-03-20 12:03:34 +08:00
parent d48e5a05a6
commit c2abc4e2e4
3 changed files with 52 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ public class ImTalkController {
@GetMapping(value = "/by/user/{userId}")
@ApiOperation(value = "查看与某人聊天详情")
public ResultMessage<ImTalkVO> getByUser(@PathVariable String userId) {
return ResultUtil.data(new ImTalkVO(imTalkService.getTalkByUser(userId),userId));
return ResultUtil.data(imTalkService.getTalkByUserId(userId));
}
@GetMapping(value = "/top")