浏览代码

fix coedition

tripeur 4 年之前
父节点
当前提交
c4e19487dd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/fr/jaquin/bdlg/planner/websockets/SubscriptionListener.java

+ 1 - 1
src/main/java/fr/jaquin/bdlg/planner/websockets/SubscriptionListener.java

@@ -42,7 +42,7 @@ public class SubscriptionListener extends SubscriptionMap
 
         // Notify new joiner of other editor of this planning
         msg.setType(StompQuery.planningCoeditor);
-        msg.setPayload("[" + String.join(",", map.get(uuid)) + "]");
+        msg.setPayload("[\"" + String.join("\",\"", map.get(uuid)) + "\"]");
         simpMessagingTemplate.convertAndSendToUser(username, "/queue/query", msg);
 
         // Notify other user that username join