RSNewWebUI/webui-src
jolavillette 00459bbbcb webui v150: Leave Chat reported a closed tunnel whatever the core answered
rsJsonApiRequest hands the callback the HTTP status, not the answer, and the
button read that as "the tunnel is closed": any reply at all, including one that
says nothing was closed, ended the conversation on screen. The core does report
it, in retval, so that is what is read now, and the ended card says which of the
two happened -- closed on request, or already gone before the click.

The status poll had the same deafness and is what let it happen. Once a tunnel
is gone from the core -- died of inaction, closed by the peer --
getDistantChatStatus answers false, and the poll only ever looked at the branch
where it answers true. So the last known status stayed on screen for good: a
conversation whose tunnel had been dead for a while kept its green dot and its
"You can talk", and Leave Chat then had, quite correctly, nothing to close. Two
consecutive false answers now end the conversation, with a line saying so, which
is the state the user was in.

Needs the libretroshare side to be meaningful:
fix/distant-chat-close-keeps-contact makes closeDistantChatConnexion report
whether it closed anything, and drop the distant chat contact it used to leave
behind.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-18 09:26:52 +02:00
..
app webui v150: Leave Chat reported a closed tunnel whatever the core answered 2026-08-18 09:26:52 +02:00
assets feat: remove google font and use local font included with webui 2024-01-15 00:05:19 +05:30
make-src build: drop build.ps1 and keep the standard sass pipeline 2026-08-08 17:10:58 +02:00
.editorconfig fix: navbar heading icon 2024-01-15 00:06:11 +05:30
.nvmrc build: modernize WebUI build and lint tooling 2026-08-02 20:46:00 +05:30
.prettierrc Fix misplaced braces in lint config (#31) 2021-04-18 16:58:36 +05:30
eslint.config.mjs build: modernize WebUI build and lint tooling 2026-08-02 20:46:00 +05:30
index.html feat: remove google font and use local font included with webui 2024-01-15 00:05:19 +05:30
package-lock.json build: modernize WebUI build and lint tooling 2026-08-02 20:46:00 +05:30
package.json build: make lint independent of generated output 2026-08-03 12:55:13 +05:30
styles.css Added avatars before identity nicknames in the chat-room join selection. 2026-08-16 13:50:58 +02:00