Skip to content

fix(otr): prevent sending message when contact goes offline#2169

Merged
jubalh merged 5 commits into
masterfrom
feat/otr
Jun 17, 2026
Merged

fix(otr): prevent sending message when contact goes offline#2169
jubalh merged 5 commits into
masterfrom
feat/otr

Conversation

@jubalh

@jubalh jubalh commented May 19, 2026

Copy link
Copy Markdown
Member

Don't automatically end an OTR session when a contact disconnects.

Now we have clearer separation:
chatwin->is_otr tracks whether the user wants to use OTR.
otr_is_secure tracks whether the encryption is still activated.

We can now use this when sending a message to make sure we don't send
unencrypted text in case the contact goes offline.
We will display a hint that the user first needs to stop to use otr by
disabling it (/otr end).

This as well improves the situation when the connection flickers
(contact goes offline/online).

Fixes: #952

jubalh added 5 commits June 17, 2026 22:42
Don't automatically end an OTR session when a contact disconnects.

Now we have clearer separation:
`chatwin->is_otr` tracks whether the user wants to use OTR.
`otr_is_secure` tracks whether the encryption is still activated.

We can now use this when sending a message to make sure we don't send
unencrypted text in case the contact goes offline.
We will display a hint that the user first needs to stop to use otr by
disabling it (`/otr end`).

This as well improves the situation when the connection flickers
(contact goes offline/online).

Fixes: #952
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
Signed-off-by: Michael Vetter <jubalh@iodoru.org>
@jubalh jubalh added this to the next milestone Jun 17, 2026
@jubalh jubalh merged commit 2306c53 into master Jun 17, 2026
12 checks passed
@jubalh jubalh deleted the feat/otr branch June 17, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OTR: Prevent input when contact disconnects

1 participant