Skip to content

Release/1.33.9 - #2272

Merged
mpretty-cyro merged 35 commits into
masterfrom
release/1.33.9
Nov 23, 2026
Merged

mpretty-cyro merged 35 commits into
masterfrom
release/1.33.9

Conversation

@mpretty-cyro

Copy link
Copy Markdown
Collaborator

No description provided.

jpantonow and others added 30 commits October 16, 2026 00:06
A delete of a hash the swarm no longer holds comes back with an empty,
validly signed deleted list on every node. That was counted as a failure,
so the request threw, and deleting any 1:1 message older than its 14-day
TTL failed. Only a missing or invalid signature now rejects a node,
matching the check before the network refactor. The parsing takes the
verifier as a parameter so it can be tested without the native library.
Deleting a 1:1 or Note to Self message for everyone first removed its
hash from the user's own swarm, and any failure there threw before the
UnsendRequests were queued, so the recipient and other devices kept the
message. The own-swarm delete is now best effort and its failure is
logged.
A send job always marked its message as sending, so a job that only
copies an already-delivered message to our own swarm would show it as
unsent again. The job now carries whether it is such a sync, persisted
with it so a resumed job keeps it; jobs persisted without it are
ordinary sends.
After a 1:1 message reached its recipient, the copy to our own swarm
was a one-shot coroutine. Any transient failure left the delivered
message showing "Failed to sync" permanently: nothing retried it, and a
restart couldn't either because there was no job to resume. A stored
message's sync is now a send job with the same retry and backoff as
any send, and is resumed after a restart. Messages with no stored
record, such as call signalling, keep the best-effort sync.
The failure toast was logged without its exception, so an exported log
could not say why a delete failed.
The codec had no upper word limit, so a 25-word phrase decoded to a
32-byte seed. The account state requires 16 bytes and threw, crashing
onboarding with no error shown. Phrases over 13 words are now refused,
and the load screen rejects any decoded seed that isn't 16 bytes, which
also covers raw hex from a QR code. Both show the existing generic error.
The account was loaded in a lifecycle coroutine with no error handling,
so any failure there killed the app. A failure is now logged, shown as
the generic recovery password error, and the screen waits for another
attempt.
In landscape the invite options scroll inside the member list, and that
list is only built when there are non-admin members. With every member
an admin, an admin in landscape had no way to invite anyone. The empty
state now carries the options in landscape too, and scrolls with them.
onResume can run while Android still treats the app as background, for
example behind the keyguard, so starting the service there still threw
BackgroundServiceStartNotAllowedException on Android 12+. Catch the
refusal and start the service again in handleAuthenticated, when the
user has just unlocked.
Android 16 blocks launching a nested intent whose creator token is
missing or invalid, and handleAuthenticated crashed with a
SecurityException launching next_intent after unlock. next_intent is
always one of our own activities, so remove the launch protection for
intents that target this package before starting it.
getLastSentMessageID reran on every change to the thread and built a
MessageRecord, with a quote query, for each row back to the newest
outgoing message. In busy threads several of these held database
connections at once and the conversation screen ANRed waiting for one.
Select the newest outgoing row by is_outgoing with LIMIT 1 instead.
MediaFolderCell asked the ContentResolver for the thumbnail's MIME type on
every recomposition, a binder call on the main thread that ANRed the
folder picker when MediaProvider was slow. The repository already
knows which MediaStore table each thumbnail came from, so carry that
through MediaFolder instead.
If a call ended while onIncomingCall was suspended sending its answer,
the candidates it then drained went to the disposed native
PeerConnection and crashed in libjingle. Null the connection on dispose
so late candidates are ignored and other late calls fail in Kotlin.
A landed sync went through the same success handling as a first send,
which started the message's timer again from the moment it landed. Now
that a sync can land minutes later, on a retry or after a restart, a
disappearing message stayed on the sending device for that much longer
than on any other. A sync of an already-sent message now leaves the
timer alone and shortens its own-swarm copy to expire at the sent time
plus the timer, which is when linked devices expire it.
A push or background poll that cold-starts the process stores its
message before NotificationProcessor subscribes to the database change
flows, which keep no replay, so the message never notified. Since the
notification refactor in 1.33.0 this has hit every message that wakes
a killed process.

Mark each message a handler deals with in the existing, unused
notified column, and have each subscription start by replaying the
unread incoming messages still unmarked as Added events. Messages a
handler already saw aren't replayed, so a dismissed unread message
doesn't notify again on each cold start. The mark is per row because
sms ids are reused after its newest rows are deleted.
A send job whose message was deleted, or had expired, before it ran
stopped without marking itself done, so its row stayed and was resumed
at every launch only to stop again. The same happened when a send
failed for a message deleted in the meantime. Each of these now
finishes the job. Sync jobs made this far more common, since one is
queued for every stored 1:1 message.
…ient-sslcontextspec-63bfe4a50889-c9c3bb365d

Use TLS for the regular node HTTP client
…in-translations

[Automated] Update translations from Crowdin
…pired-hash

Fix delete for everyone failing for 1:1 messages older than 14 days
Refuse recovery phrases longer than 13 words instead of crashing
Retry a 1:1 message's sync to our own swarm through the job queue
…rt-service

Retry the KeyCachingService start after unlock if onResume's was refused
…t-redirect

Let the unlock screen launch its next intent on Android 16
…uery

Find the last sent message with an id-only query
…main

Tell the media folder cell its thumbnail is a video, not look it up
Drop ICE candidates added after the peer connection is disposed
Notify messages stored before the notification handlers subscribe
@mpretty-cyro
mpretty-cyro merged commit 01f5cff into master Nov 23, 2026
10 of 14 checks passed
@mpretty-cyro
mpretty-cyro deleted the release/1.33.9 branch November 23, 2026 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants