Skip to content

refactor: remove local relay functionality#533

Merged
barrydeen merged 4 commits into
mainfrom
refactor/remove-local-relay
May 15, 2026
Merged

refactor: remove local relay functionality#533
barrydeen merged 4 commits into
mainfrom
refactor/remove-local-relay

Conversation

@barrydeen
Copy link
Copy Markdown
Owner

Summary

  • Removes all local-relay code: LocalRelayConfig, LocalRelayWritePolicy, the LOCAL value in RelaySetType, isLocalRelayUrl, runtime forwarding in RelayPool, lifecycle pause/resume, the OutboxRouter own-notes branch, and the local_relay SharedPrefs key.
  • Drops the LOCAL tab + LocalRelayTab composable from RelayScreen, and the "My Local Relay" row from FeedScreen's relay picker.
  • Deletes all 13 local_relay_* string resources across English and 10 translated locales.
  • Tightens network_security_config.xml to cleartextTrafficPermitted="false" now that no relay URL ever needs ws://.
  • KeyRepository.reloadPrefs clears the orphaned local_relay SharedPrefs entry on account switch so existing installs don't carry it forever.

Test plan

  • ./gradlew assembleDebug builds clean
  • Open relay settings → 4 tabs only (General / DM / Search / Blocked); no LOCAL tab
  • Open the feed relay picker → no "My Local Relay" / home-icon row; favorites/scored/sets render normally
  • Publish a note → goes to wss:// write relays only, no extra forwarding
  • Background + foreground the app → no errors from the now-removed pause/resume hooks
  • Install on a device that previously had a local_relay pref → app starts normally and the orphaned key is cleared on account switch

barrydeen added 4 commits May 15, 2026 11:36
…ding

Removes LocalRelayConfig, LocalRelayWritePolicy, the LOCAL value in
RelaySetType, and isLocalRelayUrl from RelayConfig.kt. Strips local
relay state, forwarding paths, lifecycle pause/resume, and the
own-notes OutboxRouter branch from the relay layer.
Removes the local_relay SharedPrefs entry, KeyRepository's
localRelayFlow / save/get/load helpers, and RelayViewModel's
local-relay state and update methods. StartupCoordinator no longer
wires the relay pool to localRelayFlow. reloadPrefs clears the
orphaned local_relay key on account switch.
RelayScreen drops the LOCAL tab and its LocalRelayTab composable.
FeedScreen's RelayPickerDialog no longer surfaces a "My Local
Relay" row, and its localRelayUrl parameter is removed.
Drops all local_relay_* keys from English and 10 translated locales.
Sets cleartextTrafficPermitted=false in the network security config
now that ws:// is no longer needed for any relay URL.
@barrydeen barrydeen merged commit 6133b10 into main May 15, 2026
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.

1 participant