Function: eca-chat--config-target-id
eca-chat--config-target-id is a natively compiled function defined in
eca-chat.el.
Signature
(eca-chat--config-target-id SESSION CHAT-CONFIG CHAT-ID)
Documentation
Return the chat targeted by CHAT-CONFIG for SESSION and CHAT-ID.
When CHAT-ID is nil, recognize selection-only restore updates from
legacy servers while a chat/open request is pending.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--config-target-id (session chat-config chat-id)
"Return the chat targeted by CHAT-CONFIG for SESSION and CHAT-ID.
When CHAT-ID is nil, recognize selection-only restore updates from
legacy servers while a `chat/open' request is pending."
(or chat-id
(when (and (eca--session-opening-chat-id session)
(eca-chat--legacy-open-config-p chat-config))
(eca--session-opening-chat-id session))))