Commit Graph

8054 Commits

Author SHA1 Message Date
Vitor Pamplona
551bd344e0 Makes sure to trigger null pointer exception on message deserializer 2025-10-21 20:15:48 -04:00
Vitor Pamplona
c21b2ca60f Removes the choice of Dispatchers from Quartz 2025-10-21 20:15:05 -04:00
Vitor Pamplona
db1d5c7e82 Adds the user outbox relays when loading addressables by that user. 2025-10-21 20:09:13 -04:00
Vitor Pamplona
17618ac361 Fixes bug when loading users 2025-10-21 19:29:43 -04:00
Vitor Pamplona
bf94d0d91c For reports, only use the outbox relay if the user has it. (don't use our default bootstrapping relays) 2025-10-21 19:09:58 -04:00
Vitor Pamplona
66096e5b98 Allows an empty metadata to reload everything about the user 2025-10-21 19:09:25 -04:00
Vitor Pamplona
c8a608718c Merge 2025-10-21 18:42:11 -04:00
Vitor Pamplona
df54f7bb67 Moves all Dispatchers.Default to IO because of the amount of Synchronized code that blocks the thread underneath each coroutine and since Default only has the exact number of threads the processor offers, once they block, we lose computing power 2025-10-21 18:30:08 -04:00
David Kaspar
5b230a4c9b Merge branch 'main' into image-gallery-improve-layout 2025-10-22 00:10:34 +02:00
Vitor Pamplona
d8907e3dfb Caches the User object to avoid being deleted by the soft reference on Local Cache 2025-10-21 17:52:45 -04:00
Vitor Pamplona
889e3d63ff Merge pull request #1527 from vitorpamplona/l10n_crowdin_translations
New Crowdin Translations
2025-10-21 16:06:01 -04:00
Crowdin Bot
5f7b318647 New Crowdin translations by GitHub Action 2025-10-21 20:04:21 +00:00
Vitor Pamplona
e2b2b10994 - Separates a relay failure tracker to a module
- Updates finding the outbox relay set to include the set of connected relays before all of the relays.
2025-10-21 15:55:32 -04:00
davotoula
a055f473cb prevent race condition: Added a state-aware rememberFirstImageOrientation helper so each gallery watches the cache until the first image’s real aspect ratio is known 2025-10-21 15:56:18 +01:00
davotoula
c735c358bb extracted common logic 2025-10-21 15:47:20 +01:00
davotoula
50cbbb55b6 three images case: test for aspect ratio of first image and adapt gallery based on that 2025-10-21 15:41:40 +01:00
davotoula
103845225b two images case: test for aspect ratio of first image and adapt gallery based on that 2025-10-21 15:19:35 +01:00
Vitor Pamplona
a27df3a9b6 Improving click and long press interactions with the relay list item and status bar items 2025-10-21 09:19:11 -04:00
Vitor Pamplona
d51d1f4453 Updates OkHttp, Tor and Spotless back 2025-10-21 08:38:53 -04:00
Vitor Pamplona
f899d446bc Merge 2025-10-21 08:37:53 -04:00
Vitor Pamplona
c1295ed97f Reverts composable naming conventions on spotless 2025-10-21 08:34:29 -04:00
Vitor Pamplona
774c5412d3 Merge pull request #1526 from davotoula/revert-spotless-plugin
revert spotless plugin  version
2025-10-21 08:32:47 -04:00
davotoula
38d5527b91 revert spotless plugin (need to find a solution for @Composable function names)
Remove unused imports
2025-10-21 12:47:42 +01:00
Vitor Pamplona
1ce352e69f Changes the icon of account preferences to translation for now 2025-10-20 21:00:11 -04:00
Vitor Pamplona
bf3e5c4568 no need for this anymore 2025-10-20 20:57:20 -04:00
Vitor Pamplona
200db73ce4 remove fmt.wiz.biz from bootstrap relays 2025-10-20 20:22:58 -04:00
Vitor Pamplona
2d1fd4a48a Remove companions 2025-10-20 20:22:37 -04:00
Vitor Pamplona
a0cb2a7db6 Creates a default relay list for indexers in new accounts 2025-10-20 20:22:20 -04:00
Vitor Pamplona
382319addf Adds a declared follows state 2025-10-20 20:21:18 -04:00
Vitor Pamplona
37625987c1 Only listens to notification changes when the UI is visible 2025-10-20 19:41:27 -04:00
Vitor Pamplona
63bd0b6cae Watches the okHttp client for web calls (only active when screen is visible) 2025-10-20 19:40:04 -04:00
Vitor Pamplona
48a69f1d26 Watches the correct OKHttp for relays 2025-10-20 19:39:33 -04:00
Vitor Pamplona
f663bb78aa Reduce error log sizes 2025-10-20 18:41:43 -04:00
Vitor Pamplona
a163c4188f Adjustments to the lazy initialization of the app 2025-10-20 18:41:00 -04:00
Vitor Pamplona
fabec35593 Merge branch 'main' of https://github.com/vitorpamplona/amethyst 2025-10-20 17:13:25 -04:00
Vitor Pamplona
e4ce7415a3 Don't use "when" when just one line is needed 2025-10-20 17:13:11 -04:00
Vitor Pamplona
911fdffa95 Turns the EOSE class into a mutable map for speed 2025-10-20 17:12:36 -04:00
Vitor Pamplona
3a73de6828 Separates the new GaleryParser from Composables so that later we can cache it and parse it on the Default thread. 2025-10-20 17:12:12 -04:00
Vitor Pamplona
c4653b147c Adds new benchmark cases 2025-10-20 17:10:08 -04:00
Vitor Pamplona
cbba2fe423 Merge pull request #1525 from vitorpamplona/l10n_crowdin_translations
New Crowdin Translations
2025-10-18 18:14:05 -04:00
Crowdin Bot
8aa7c57a24 New Crowdin translations by GitHub Action 2025-10-18 22:13:15 +00:00
Vitor Pamplona
e45b4b11dc Restructuring Relay systems to:
- Maintain order of incoming messages for relay listeners
- Defers all processing of incoming messages to coroutines via channels, freeing OkHttp's thread as soon as possible.
- Simplifies the main relay class by using attached listener modules for each function of the relay client.
- Migrate defaultOnConnect calls to become listener based and moved to NostrClients
- Treat counts as query only, not subscriptions.
- Coordinates REQs so that if an update is required to be sent but the server has not finished processing events, waits for it to finish and sends it later as soon as EOSE or Close arrives
- Correctly sustain the local state of each Req.
- Creates an Account follow list per Relay state that only includes shared relays as a better source of functioning relays
- Changes UserLoading features in a tentative to make them faster since they are used by all functions in the app.
- Correctly marks EOSE for filters that are aligned with the Req State from NostrClient
- Avoid subsequent REQ updates before EOSE or CLOSE calls.
- Refactoring RelayClient listener to be not dependent of which module is active for a relay client.
- Refactors authenticators to do complete operation as a module
- Breaks down Relay Client modules (Auth, Reqs, Counts, Event submissions) in the Relay Pool class.
- Creates listeners just for special REQ situations
- Move statistics to outside the base relay class as a listener
- Move logs to outside the base relay class as a listener
- Better structures a Standalone Relay client
- More appropriately communicate errors to the listeners
- Remove relay state on listeners
2025-10-18 18:10:45 -04:00
Vitor Pamplona
e20afd39a3 Removing onClosing listener because it isn't being used. 2025-10-18 17:12:10 -04:00
Vitor Pamplona
4c633c7dec Merge branch 'main' of https://github.com/vitorpamplona/amethyst 2025-10-18 08:44:21 -04:00
Vitor Pamplona
97fc10d6ea Increases local video disk cache to 1GB 2025-10-17 18:00:38 -04:00
Vitor Pamplona
b8d0f057c5 Adds a way to remove everyone but some keys from the list of EOSEs 2025-10-17 14:30:13 -04:00
Vitor Pamplona
990cca3d64 Moving the EmptyOTS resolver to Quartz for test cases 2025-10-17 14:29:46 -04:00
Vitor Pamplona
4a0c924d4f Merge pull request #1524 from davotoula/use-runTest-instead-of-runBlocking
change from runBlocking to runTest where appropriate
2025-10-15 18:57:42 -04:00
davotoula
5d6e7d1921 change from runBlocking to runTest where appropriate 2025-10-15 21:00:00 +02:00
Vitor Pamplona
563e985a2b Merge branch 'main' of https://github.com/vitorpamplona/amethyst 2025-10-14 16:13:16 -04:00