diff --git a/public/index.html b/public/index.html
index 1e6d8587e..fa36885c2 100644
--- a/public/index.html
+++ b/public/index.html
@@ -4395,6 +4395,7 @@
name2: name2,
characterId: this_chid,
groupId: selected_group,
+ chatId: (this_chid && characters[this_chid].chat),
onlineStatus: online_status,
addOneMessage: addOneMessage,
generate: Generate,