Commit 276fd97f authored by shiyu's avatar shiyu

创建会话 聊天用户账号格式化

parent 68c6e9f4
......@@ -130,8 +130,8 @@ public class ImServiceImpl implements IMService {
boolean isExisted = conversationDao.isExisted(dto.getFromAccount(), dto.getToAccount());
if (!isExisted) {
Conversation conversation = new Conversation();
conversation.setFromAccount(dto.getFromAccount());
conversation.setToAccount(dto.getToAccount());
conversation.setFromAccount(imUtil.revertAppletUserId(dto.getFromAccount()));
conversation.setToAccount(imUtil.revertAppletUserId(dto.getToAccount()));
String chatId = dto.getFromAccount() + "_to_" + dto.getToAccount();
conversation.setChatId(chatId);
conversation.setCreateTime(new Date());
......
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