Commit cef4d2bc by Shadow

修复撤回消息时路由消息报错的问题

parent 42f75d67
......@@ -264,8 +264,6 @@ public class ImMessageServiceImpl extends BaseServiceImpl<ImMessageMapper, ImMes
throw new BusinessException("未查找到消息发送者");
}
eventPublisher.publishEvent(new ClientSendMessageEvent(imApplication.getId(), messageById));
// 修改消息体
messageById.setWithdraw(Boolean.TRUE);
messageById.setWithdrawTime(new Date());
......@@ -273,6 +271,8 @@ public class ImMessageServiceImpl extends BaseServiceImpl<ImMessageMapper, ImMes
messageById.setContent("{}");
boolean saveOk = this.updateById(messageById);
eventPublisher.publishEvent(new ClientSendMessageEvent(imApplication.getId(), messageById));
if (saveOk) {
// 查询该会话所有成员
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment