Files
chatmail-core/src
Hocuri ef798cd86d fix: Allow to send to chats after failed securejoin again (#6817)
Revert the biggest part of https://github.com/chatmail/core/pull/6722/
in order to fix #6816. Reopens
https://github.com/chatmail/core/issues/6706.

Rationale for reverting instead of fixing is that it's not trivial to
implement "if the chat is encrypted, can_send() returns true": When
sending a message, in order to check whether to encrypt, we load all
peerstates and check whether all of them can be encrypted to
(`should_encrypt()`). We could do this in `can_send()`, but this would
make it quite slow for groups. With multi-transport, the ways of
checking whether to encrypt will be different, so in order not to do
unnecessary work now, this PR just revert parts of
[https://github.com/chatmail/core/pull/6722/](https://github.com/chatmail/core/pull/6817#),
so that we can make things work nicely when multi-transport is merged.

As a quick mitigation, we could increase the timeout from 15s to
something like 1 minute or 1 day: Long enough that usually securejoin
will finish before, but short enough that it's possible to send to old
chats that had a failed securejoin long in the past.
2025-04-23 20:55:50 +00:00
..
2025-03-06 20:30:17 +01:00
2025-04-06 07:42:08 +00:00
2025-02-26 22:03:08 +01:00
2025-03-29 15:10:57 +00:00
2025-04-06 07:42:08 +00:00
2025-04-06 07:42:08 +00:00
2025-04-06 07:42:08 +00:00
2025-04-06 07:42:08 +00:00
2025-02-26 22:03:08 +01:00
2025-01-21 19:42:19 +01:00
2024-11-27 23:57:23 +00:00
2024-12-02 19:22:45 +00:00
2024-09-13 17:58:25 +00:00
2024-12-05 12:23:19 +00:00
2025-04-06 07:42:08 +00:00
2025-02-27 16:56:55 +00:00