Repository navigation
Sync/upstream 8.31.1 - #15064
Closed
ajk0x00 wants to merge 92 commits into
Closed
Sync/upstream 8.31.1#15064ajk0x00 wants to merge 92 commits into
ajk0x00 wants to merge 92 commits into
Conversation
Google Drive API dependencies pull in httpclient and httpcore, both of which ship META-INF/DEPENDENCIES, causing a build failure during Java resource merging. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Google Drive doesn't support file uploads via service account for personal accounts, so switch to GCS buckets which work natively with service accounts. Key changes: - Replace google-api-services-drive with google-cloud-storage dependency - New cloudstorage package replaces drive package (CloudStorageCredentialsProvider, CloudStorageServiceHelper, CloudStorageObjectInfo) - SaveStoryToCloudJob replaces SaveStoryToDriveJob (uploads to GCS bucket) - CloudStorageSyncJob replaces DriveSyncJob (syncs DB JSON to GCS) - CloudStorageThumbnailLoader replaces DriveThumbnailLoader (reads from GCS) - CloudStorageValues replaces DriveValues in SignalStore - User-facing strings changed from "Save to Drive" to "Save to Cloud" - Bucket name read from cloud_storage_config.json asset file - Old Drive job keys registered as dead jobs for graceful migration Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Exclude conscrypt-openjdk-uber, io.opentelemetry, io.grpc from google-cloud-storage to avoid duplicate class conflicts with Android - Add missing verification-metadata.xml entries for new transitive deps Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…nflicts google-cloud-storage transitively brings protobuf-java which conflicts with the project's protobuf-javalite, and api-common which may conflict with other Google API dependencies. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
GCS transitive dependencies (google-cloud-storage, google-cloud-core, gax, etc.) all ship META-INF/INDEX.LIST, which conflicts during Java resource merging. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- SaveStoryToCloudJob: hydrate attachments via withAttachments() and resolve part:// URIs through PartAuthority; add diagnostic logs at every early-exit so silent failures are observable. - Remove the api-common exclusion that broke StorageOptions instantiation. - Saved stories grid is now a square layout, uses DynamicNoActionBarTheme so the toolbar doesn't collide with a window-decor action bar, and supports long-press multi-select with a confirm-and-delete action mode (deletes the GCS blob, updates the local json db, and re-uploads it). - Add SavedStoryViewerActivity: PhotoView via Glide for images/text, ExoPlayer for videos (downloads to cacheDir then plays). - Reorder the stories landing so the "Saved stories" row sits after regular stories and before the hidden expander. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Firebase Installations rejects the debug-signed cert on this build, so FCM never works regardless of whether Play Services is present. Hardcode the getter to false so every gate site (foreground service, AlarmSleepTimer, RefreshAttributesJob.fetchesMessages) treats this device as non-FCM and falls back to the always-on WebSocket path. The setter is kept as a no-op so existing call sites compile. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Previously the local saved_stories_db.json was created blank on first use; the first save would then overwrite the cloud DB with just the new record, clobbering any history (reinstall, new device, second account). Three layers ensure the cloud copy is pulled regardless of which path runs first: - ApplicationContext: enqueue CloudStorageSyncJob postRender so the existing restore/merge logic runs on launch (the factory was already registered but nothing scheduled it). - SavedStoriesRepository.getSavedStories: if the local DB doesn't exist, pull the cloud JSON inline (already called on Dispatchers.IO). - SaveStoryToCloudJob: belt-and-suspenders pre-pull guard before db.add, in case the user saves before the startup sync finishes. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…ls, save-all Extends the Save-to-Cloud feature with four capabilities: - Video thumbnails: SavedStoryRecord gains thumbnailObjectName, stored in a separate <profileName>/thumbnails/ folder. Generated at upload time and backfilled lazily for legacy videos on first grid view (deduped + throttled). - Swipeable saved viewer: SavedStoryViewerActivity is now a ViewPager2 over the full sorted list (SavedStoryPagerAdapter + SavedStoryPageFragment); ExoPlayer plays only the resumed page. - Save to cloud from chat media preview: SaveStoryToCloudJob takes an optional attachmentId (album-aware) with backward-compatible serialization; wired into the media preview overflow menu. - Save all stories (story viewer only): enqueues a job per post in the current user/group story. Also fixes batch saves: jobs share one queue so the JSON DB read-modify-write no longer races, and object names include the message/attachment id so stories posted in the same second no longer overwrite each other in the bucket. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sticker sends went through sendMessageWithoutComposeInput, which defaulted quote to null, so a pending swipe-to-reply was dropped and the sticker posted as a standalone message. Capture inputPanel.quote and pass it through, then clear it afterward so the reply doesn't carry over to subsequent stickers (the keyboard path uses clearCompose=false and otherwise leaves the quote attached). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The sync job was enqueued at app startup regardless of login state, so
it ran before an account existed and crashed fatally when doRun() called
Recipient.self() ("Tried to call getSelf() before local data was set!").
Skip enqueue and abort doRun() when not registered, and enqueue the sync
right after registration completes so it runs as soon as the user logs in.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Reuse the existing typing-indicator pipeline: while a voice note is being recorded, periodically re-broadcast the typing-started signal so the recipient sees the animated dots in both the conversation and the chat list, same as text typing. A 2.5s self-rescheduling refresh defeats the sender's 3s pause timeout; started/stopped from the InputPanel recorder callbacks and torn down in onPause. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The CloudStorageSyncJob ran at startup before the account/profile existed, crashing on Recipient.self() and pre-creating an empty local DB that permanently disabled restore. Remove the job and its scheduler entirely (old key mapped to FailingJob so persisted instances fail gracefully) and let the saved-stories page own DB creation/restore: - SavedStoriesRepository restores from cloud on first visit when no local DB exists, guarded by a non-empty profile name so it never queries an empty prefix. This path never persists an empty DB, so it self-heals on each visit until cloud data is available. - The Stories landing count now goes through the same restore path (getSavedStoryCount), off the main thread, so a fresh device reflects cloud data without opening the grid. Also add helper scripts: update_saved_stories_db.py rebuilds a profile's saved_stories_db.json index from the objects present in the GCS bucket; upload_apk.py uploads a built APK. Ignore venv/, __pycache__/, and keystore.release.properties. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Feature/save stories to drive folder
Add debug signing key for signed apks
Sync/upstream v8.20.4
…ergeNativeLibsTask error
Merge remote-tracking branch 'upstream/main' into sync/upstream-v8.23.2
Sync/upstream v8.23.2
ci: trigger release build on main and clean up unused workflows
ci: fix gh release create invalid clobber flag
fix(upload): resolve compile errors in AttachmentUploadJob
…dlers and registry
…oqJob to individual command handlers
…inguish AI assistant messages
…sed on message and quote context
…oted text and subsequent conversation context
… precede default parameters for JVM interop
…t details as weak passive signal
Sync/upstream main
…eady discussed topics
feat(ai): configure /topic to suggest exactly one topic and avoid alr…
…keeping only for /judge
Feat/topic couples prompt
- Sync fork with upstream v8.31.1 (538 commits) - Drop superseded features (sticker reply quotes, stories ordering fix, audio waveform fix, digesting request body fix, view-once captions) - Migrate custom SettingsValues to Kotlin (mirror recorded videos, AI model selector) - Wire front camera video mirroring and AI model settings into feature/app-settings Compose architecture - Maintain Groq AI slash commands (/ask, /topic, /rapabout, /judge) and double-tap reactions
@ajk0x00, although Footnotes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Baseline Overview
441ba42c3f(v8.24.2, Aug 21, 2026)mainlatest commit:92f5ccd3a5(v8.31.1, Oct 8, 2026)+192,968 / -151,957lines).Major Highlights & New Features
1. Phoneless / Numberless Accounts ("Signal Login")
The biggest new initiative upstream is account creation and management without needing a phone number:
2. Media Keyboard Redesign & Expressive Features
Introduce and integrate new media keyboard) with overhauled drag/inset handling, category bar scrolling, and refreshed iconography.Add support for sending voice note waveforms).3. Core Architecture & Refactoring Milestones
TextSecurePreferences:TextSecurePreferenceswas completely deleted (d57b928c6f) and replaced bySettingsValues/ KeyValueStore.2627ff1b95).BottomSheetScaffold.2026.09.00.:feature:chat-settingsmodule.9.4.0.kotlinx-serialization-json) and convertedlibsignal-serviceJSON models to Kotlin data classes.0.100→v0.105.0) and RingRTC (v2.72.1).4. Notifications & Calling
5. Security & Networking
Considerations for Your Fork (When Syncing)
If you plan to merge or rebase upstream
main:TextSecurePreferencesRemoval: Any custom settings or preferences in your fork accessingTextSecurePreferenceswill need to switch toSettingsValuesorLabsValues.BottomSheetScaffoldand main navigation moved to Navigation 3; any modifications to conversation layout or dialog overlays will need to align with this hierarchy.