getContext: Simplify chatId access

192a1f40147451a5ab94581710bac4c1caa588b0

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/scripts/st-context.js+1 -1
@@ -80,7 +80,7 @@ export function getContext() {
80 groupId: selected_group,80 groupId: selected_group,
81 chatId: selected_group81 chatId: selected_group
82 ? groups.find(x => x.id == selected_group)?.chat_id82 ? groups.find(x => x.id == selected_group)?.chat_id
83 : (this_chid && characters[this_chid] && characters[this_chid].chat),83 : (characters[this_chid]?.chat),
84 getCurrentChatId,84 getCurrentChatId,
85 getRequestHeaders,85 getRequestHeaders,
86 reloadCurrentChat,86 reloadCurrentChat,