Commit Graph

684 Commits

Author SHA1 Message Date
Vitor Pamplona 3bf2f858f7 Fixes the unable to recreate user after the GC deletes it. 2025-08-18 17:24:34 -04:00
Vitor Pamplona 5c0d71f034 Avoiding concurrent errors when deleting weak references 2025-08-18 16:52:17 -04:00
Vitor Pamplona 9d9b5f03db Merge pull request #1417 from greenart7c3/main
Change BasicOkHttpWebSocket to be like the docs
2025-08-18 13:27:52 -04:00
greenart7c3 e076f97714 Change BasicOkHttpWebSocket to be like the docs 2025-08-18 13:51:40 -03:00
Vitor Pamplona f5247a5443 Moves reconnections to 1 minute not 10 seconds 2025-08-18 11:37:32 -04:00
Vitor Pamplona 92e9978859 Moves to parcelable.
Fixes: https://github.com/vitorpamplona/amethyst/issues/1413
2025-08-18 11:25:57 -04:00
David Kaspar 41545a156b Use explicit annotation target for constructor params
See https://youtrack.jetbrains.com/issue/KT-73255 for more details
2025-08-18 10:44:42 +01:00
Vitor Pamplona 45ec9e3a62 Merge pull request #1411 from davotoula/reduce-duplications-large-cache
Reduce duplications: large cache
2025-08-16 16:14:13 -04:00
David Kaspar c1004dc643 Use .get( instead of index to keep to code base coding style 2025-08-16 18:56:48 +01:00
David Kaspar a72fff5f8f Lifted out collectors from CacheCollectors object 2025-08-16 18:50:01 +01:00
David Kaspar a82f4aacbe Use val for references that do not change (eg results) 2025-08-16 18:17:27 +01:00
David Kaspar f21c7bd258 Lint issues: remove unused methods, use indexing operator instead of .get() 2025-08-16 11:21:19 +01:00
David Kaspar 533d8b18f0 Remove duplicate functionality from Cache implementations and use instead common methods in CacheOperations utility class
Create override for forEach and size as they are needed internally and do slightly different things
2025-08-16 10:45:37 +01:00
David Kaspar b069f283ac Move common cache operations to new utility class 2025-08-16 10:38:57 +01:00
David Kaspar eab2f96f02 remove duplicate colletors and Use collectors from new utility class 2025-08-16 10:20:52 +01:00
David Kaspar c4b71a0aea Move common collectors to new utility class 2025-08-16 10:09:56 +01:00
Vitor Pamplona 88933fba8d Fixes the time to reconnect interval due to an error between seconds and milliseconds. 2025-08-15 18:07:12 -04:00
Vitor Pamplona ef049e88ba Adds a new mechanism to wake up all connections when movement is made in the app. 2025-08-15 18:06:21 -04:00
Vitor Pamplona 6f27c96aed changes the sendEvent from forcing a connection to waiting for the time to connect. 2025-08-15 18:04:57 -04:00
Vitor Pamplona 5b605700a3 Adds 10 seconds ago 2025-08-15 18:03:57 -04:00
Vitor Pamplona f4759c283e Adds a basic OkHttp builder to Quartz (new dependency :( )
Adds some instructions to the basic readme.md
2025-08-15 14:33:05 -04:00
Vitor Pamplona 4887e6f3a1 Sends a disconnect signal to the clients 2025-08-15 09:43:37 -04:00
Vitor Pamplona 529a1f403e Merge branch 'main' of https://github.com/vitorpamplona/amethyst 2025-08-15 08:41:22 -04:00
Vitor Pamplona c9b16309e2 Clears the socket from memory upon closing. 2025-08-15 08:40:33 -04:00
greenart7c3 25f5551a98 Fix non ssl connections 2025-08-15 07:35:01 -03:00
Vitor Pamplona 424d5ccc9c Refactoring 2025-08-14 17:32:28 -04:00
Vitor Pamplona 422a018a1f Fixes when posts have published_at in milliseconds. 2025-08-14 17:32:15 -04:00
Vitor Pamplona 5b8afb6f60 Updates logging for auth 2025-08-14 17:06:26 -04:00
Vitor Pamplona dfe5f86a23 Faster PublishedAt providers 2025-08-14 11:28:03 -04:00
Vitor Pamplona 6514bacf69 Merge pull request #1409 from davotoula/1406-display-app-picture-when-clicked-on-app-picture
Display app picture when clicked on app picture
2025-08-14 09:51:06 -04:00
David Kaspar d367a1f281 Specify return type as non-nullable asJackson will either return a non-null value or throw an exception. 2025-08-14 11:23:23 +01:00
Vitor Pamplona 4c0f223673 Draft event refactoring 2025-08-13 19:11:29 -04:00
Vitor Pamplona 478b2d12eb Speeding up the parsing of relay urls 2025-08-12 17:16:14 -04:00
Vitor Pamplona c14d976ad1 Minor refactoring 2025-08-12 17:15:23 -04:00
Vitor Pamplona d0f3dde08b Migrates to a more obvious open/close subscription model for NostrClient 2025-08-11 10:34:10 -04:00
Vitor Pamplona d5b9d5e80b Closes subscription when finished by timeout. 2025-08-11 10:33:21 -04:00
Vitor Pamplona 51d7fa3aac Fixes missing method on build 2025-08-07 10:09:43 -04:00
Vitor Pamplona 23b3ff9fe8 Adds missing methods to display as Public message 2025-08-06 18:09:14 -04:00
Vitor Pamplona 1b043603f9 Adds a method to create nprofiles without creating a relay list first 2025-08-06 17:54:34 -04:00
Vitor Pamplona 726f9e2f4f Moves target compatibility to java 21 2025-08-06 14:07:51 -04:00
Vitor Pamplona e237853a8f Making the new signer work for readonly accounts 2025-08-05 16:06:52 -04:00
Vitor Pamplona 63f62167a4 Simplifying the refactoring of the DecryptAndIndexProcessor 2025-08-05 15:04:23 -04:00
Vitor Pamplona 8af955ce20 Adds an extra layer on the url normalization cache to avoid recomputing failed attempts before. 2025-08-04 18:18:39 -04:00
Vitor Pamplona 6b946a57c2 Moves the exceptions to our own signing exceptions 2025-08-01 16:09:52 -04:00
Vitor Pamplona 7e9d5d6063 Uses new tag model on the ZapEvent 2025-07-31 19:06:34 -04:00
Vitor Pamplona c5645b0ae7 Removes suspend of NostrSignerSync-based functions 2025-07-31 17:45:44 -04:00
Vitor Pamplona 14e860928b Improves names of the repost methods 2025-07-31 17:44:04 -04:00
Vitor Pamplona 2e9696745a Avoids sending filters on new connections if the client is not active 2025-07-30 18:23:02 -04:00
Vitor Pamplona 5d4b16641e Fixes count call 2025-07-30 18:11:11 -04:00
Vitor Pamplona 349dfe3d42 Slowdown updates to random relay requests. 2025-07-30 18:05:53 -04:00