Merge remote-tracking branch 'origin/test-training2' into test-training2

This commit is contained in:
joylink_zhangsai 2022-11-30 10:25:43 +08:00
commit 3974e96c99

View File

@ -426,7 +426,10 @@ public class ConversationManagerService {
}
private ConversationMessageVO sendChatMessage(Simulation simulation, Set<String> userIds, ConversationMessage conversationMessage) {
Conversation conversation = simulation.getSimulationConversationMap().getOrDefault(CHAT_ROOM_KEY, createChatRoomConversation(simulation));
Conversation conversation = simulation.getSimulationConversationMap().get(CHAT_ROOM_KEY);
if (conversation != null) {
conversation = createChatRoomConversation(simulation);
}
conversation.getMessageList().add(conversationMessage);
ConversationMessageVO conversationMessageVO = new ConversationMessageVO(conversationMessage);
SocketMessageVO<ConversationMessageVO> chatMessage =