getContext: Simplify chatId access

192a1f40147451a5ab94581710bac4c1caa588b0

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

1 files changed, +1 -1Showing whitespace changes
public/scripts/st-context.js+1 -1
@@ -80,7 +80,7 @@ export function getContext() {
8080 groupId: selected_group,
8181 chatId: selected_group
8282 ? groups.find(x => x.id == selected_group)?.chat_id
8383 : (this_chid && characters[this_chid] && characters[this_chid]?.chat),
8484 getCurrentChatId,
8585 getRequestHeaders,
8686 reloadCurrentChat,