]> git.parisson.com Git - teleforma.git/commitdiff
Fix chat
authorYoan Le Clanche <yoanl@pilotsystems.net>
Mon, 27 Jun 2022 15:31:53 +0000 (17:31 +0200)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Mon, 27 Jun 2022 15:31:53 +0000 (17:31 +0200)
teleforma/src/js/components/Chat.vue

index 500a8c23a1c10545ec167be2830f16040f0325d7..46b07bb67748f5cce328b2bdfcf0bc8e04947cb6 100644 (file)
@@ -142,7 +142,7 @@ export default class Chat extends Vue {
     this.socket!.send(
       JSON.stringify({
         message: content,
-        replyTo: replyMessage._id || null
+        replyTo: replyMessage ? replyMessage._id : null
       })
     )
   }