From 725e8d3e540360f713735fb6bc55c15ab4e7fb5b Mon Sep 17 00:00:00 2001 From: rustdesk Date: Thu, 10 Feb 2022 00:07:04 +0800 Subject: [PATCH] unify message --- src/connection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection.ts b/src/connection.ts index 6a08d3dfb..c6878043d 100644 --- a/src/connection.ts +++ b/src/connection.ts @@ -451,7 +451,7 @@ export default class Connection { misc.audio_format.sample_rate ); } else if (misc.chat_message) { - globals.pushEvent("chat", misc.chat_message.text); + globals.pushEvent("chat", { text: misc.chat_message.text }); } else if (misc.permission_info) { const p = misc.permission_info; console.info("Change permission " + p.permission + " -> " + p.enabled);