getContext: Simplify chatId access
| @@ -80,7 +80,7 @@ export function getContext() { | ||
| 80 | 80 | groupId: selected_group, |
| 81 | 81 | chatId: selected_group |
| 82 | 82 | ? groups.find(x => x.id == selected_group)?.chat_id |
| 83 | 83 | : (this_chid && characters[this_chid] && characters[this_chid]?.chat), |
| 84 | 84 | getCurrentChatId, |
| 85 | 85 | getRequestHeaders, |
| 86 | 86 | reloadCurrentChat, |