|
@@ -124,7 +124,7 @@ public class CommunityChatMsgController extends BaseController {
|
|
|
public AjaxResult clearChat(Long otherUserId) {
|
|
|
Long userId = SecurityUtils.getUserId();
|
|
|
try {
|
|
|
- boolean update = communityChatMsgService.update(
|
|
|
+ communityChatMsgService.update(
|
|
|
null,
|
|
|
new UpdateWrapper<CommunityChatMsg>()
|
|
|
.eq("sender_id", userId)
|
|
@@ -134,9 +134,6 @@ public class CommunityChatMsgController extends BaseController {
|
|
|
wrapper.ne("is_delete", 1).or().isNull("is_delete");
|
|
|
})
|
|
|
);
|
|
|
- if (!update) {
|
|
|
- return success("清空聊天记录失败!");
|
|
|
- }
|
|
|
} catch (Exception e) {
|
|
|
throw new ProjectException();
|
|
|
}
|