Commit Graph

7530 Commits

Author SHA1 Message Date
Vitor Pamplona bd70058f78 Avoids creating a byte array and recreating it again inside of the Mac instance. 2025-09-15 12:30:56 -04:00
Vitor Pamplona 67f9557081 Reduces the need to keep the memory for checking the Mac and decrypting at the same time, allowing the GC to run after the check was correct. 2025-09-15 12:30:26 -04:00
Vitor Pamplona 689066fd44 Benchmark for NIP-44 operations 2025-09-15 12:29:26 -04:00
Vitor Pamplona c84554576c Fixes flow.value warnings. 2025-09-15 12:08:04 -04:00
Vitor Pamplona 7616d01166 Implements NIP-44 extension for bigger payloads https://github.com/nostr-protocol/nips/pull/1907 2025-09-15 11:58:43 -04:00
Vitor Pamplona 60b71a5561 Merge branch 'main' of https://github.com/vitorpamplona/amethyst 2025-09-15 08:51:41 -04:00
Vitor Pamplona a7b89cb778 Removing unused imports 2025-09-15 08:50:16 -04:00
David Kaspar 6b18711fe6 Merge pull request #1473 from vitorpamplona/l10n_crowdin_translations
New Crowdin Translations
2025-09-15 13:49:59 +01:00
Crowdin Bot f0b95a3593 New Crowdin translations by GitHub Action 2025-09-15 12:42:18 +00:00
Vitor Pamplona 52cf9e1576 Merge pull request #1468 from davotoula/gallery-view-for-multiple-media
Gallery view for multiple images
2025-09-15 08:40:48 -04:00
davotoula 43f8053b30 Extracted Parsing logic into helper class 2025-09-14 13:19:12 +02:00
davotoula 74cc9535ac Added a data structure for ParagraphImageAnalysis
Single pass analysis
All image-related decisions are made based on the single analysis result
2025-09-14 12:12:44 +02:00
davotoula 7e80ed2af9 Fix for images are mixed with text in a single paragraph
nevent1qqs04pmdf8guxpyhjuvpeg72ccwuzje7vhlm09szxl2d8x28cse5fzgpz9mhxue69uhkummnw3ezuamfdejj7q3qwl89d7yazg500lehg08p45dj2jzhhyqg2erj067458e3wd30djnsxpqqqqqqzmdjgxd
2025-09-14 11:40:20 +02:00
davotoula 1788dfc0b9 Merge branch 'refs/heads/main' into gallery-view-for-multiple-media 2025-09-13 23:32:49 +02:00
davotoula 8f0a829a4d Optimised collectConsecutiveImageParagraphs: continue statements for early loop continuation 2025-09-13 23:32:17 +02:00
davotoula bfc920ca04 Added logging of image gallery computation time 2025-09-13 21:09:27 +02:00
davotoula a21b6115c7 Single pass to avoid multiple intermediate lists
O(n) traversal (no drop/takeWhile/filter allocations)
Mutable buffer for collecting images
2025-09-13 20:44:00 +02:00
davotoula 8e39da347a don't use image gallery for secret message 2025-09-13 18:16:43 +02:00
Vitor Pamplona 58277cf717 Merge branch 'main' of https://github.com/vitorpamplona/amethyst 2025-09-13 10:51:28 -04:00
Vitor Pamplona 7ef6da1a17 Merge pull request #1470 from davotoula/fix-for-trying-to-share-when-image-not-loaded
Fix for crash when attempting to share an image that is still loading
2025-09-13 10:51:11 -04:00
Vitor Pamplona ec48977a6f Merge pull request #1471 from vitorpamplona/l10n_crowdin_translations
New Crowdin Translations
2025-09-13 10:50:29 -04:00
Vitor Pamplona c5b60c3bd8 Refactor the UISharedPreferences into two files 2025-09-13 10:50:19 -04:00
Crowdin Bot 613978d7ba New Crowdin translations by GitHub Action 2025-09-13 14:48:30 +00:00
Vitor Pamplona afd20d3f8f Avoids using JSON parsers with DataStore to speed up loading time (loading the parser itself takes ~300ms) 2025-09-13 10:46:27 -04:00
Vitor Pamplona da469754c4 Adds a All User Follows to fix: https://github.com/vitorpamplona/amethyst/issues/1431 2025-09-12 16:18:12 -04:00
davotoula 6dd2f47fc9 catch exception when sharing image
Show toast
2025-09-12 21:39:57 +02:00
Vitor Pamplona 47d201f936 Fixes unnecessary typecasting from long to int in created ats 2025-09-12 15:08:10 -04:00
Vitor Pamplona 46fec1d480 Adds a payment failed enum 2025-09-12 14:24:11 -04:00
Vitor Pamplona 557ba959e2 Fixes crash on dont translate from 2025-09-12 14:17:41 -04:00
Vitor Pamplona e121b2849c Fixes subject calculations on rendering 2025-09-12 13:58:37 -04:00
Vitor Pamplona 2e16a1dca6 Fixes a bug when comparing int and long in the comparator 2025-09-12 13:36:25 -04:00
Vitor Pamplona 33155efa99 Bugfix in loading communities from Global 2025-09-12 12:52:36 -04:00
Vitor Pamplona bd3eed4a29 No need to duplicate these relays anymore 2025-09-12 12:52:13 -04:00
Vitor Pamplona ac48705980 Fixes showing blog posts in the future 2025-09-12 12:39:12 -04:00
Vitor Pamplona bc10d7184f Fixes mark as read when drafts are the latest message in the chat 2025-09-12 11:37:58 -04:00
Vitor Pamplona 0886af4386 Migrates memory counters from Long to Int 2025-09-12 11:11:16 -04:00
Vitor Pamplona 3628091511 Applying Memory trimming service to all logged in accounts. 2025-09-12 10:09:25 -04:00
David Kaspar cb3bc605bc Merge pull request #1469 from vitorpamplona/l10n_crowdin_translations
New Crowdin Translations
2025-09-12 11:49:40 +01:00
davotoula 16e3cba651 found a place where image gallery was used for single images 2025-09-12 12:14:05 +02:00
davotoula ee9e102eb2 removed lazy component from 20+ images case to avoid nesting lazy components 2025-09-12 10:54:17 +02:00
Crowdin Bot f01895b3e9 New Crowdin translations by GitHub Action 2025-09-11 23:05:11 +00:00
Vitor Pamplona 00a3918d20 Fixes F-droid build 2025-09-11 19:02:58 -04:00
Vitor Pamplona 35a123a185 No need for this log 2025-09-11 18:53:03 -04:00
Vitor Pamplona c9dc30d976 - Only shows live stream bubbles that are not 24/7
- Only shows user pictures of the active users in the past 15 minutes.
2025-09-11 18:52:14 -04:00
Vitor Pamplona c06c03928e Fixes the use of index relays and search relays to load users and events as well as become the default for global feeds. 2025-09-11 18:36:42 -04:00
Vitor Pamplona 1f8d0295d5 - Separates Application dependencies into an AppModules class to create only after the OnCreate event.
- Switches TorSettings to be per Application and not per Account anymore
- Since TorSettings is now global, moves the okHttpClient determinations out of the Account-based classes into the Application.
- Since TorSettings is now global, set's up Coil's image loader only once when creating the Application
- Moves UISettings state to App Modules instead of viewmodel
- Migrates TorSettings and UISettings to DataStore
- Accounts now have their own coroutine scopes to allow cancellation when they are unloaded/logged off
- New tor evaluator service for relay connections now uses all account's trusted relays and dm relays at the same time.
- Migrates composable-state-based UISettings to Flow-based UI settings, while observing connectivity status
- Removes the displayFeatures and windowSizeClass from the shared model
- Fixes not requesting Notification Permissions for APIs older than Tiramisu in the FDroid flavor
- Moves the NIP-11 document cache from singleton to the App Modules
- Avoids using AccountViewModel to check NIP-11 Relay documents
- Moves the UI Settings usage in composables to functions that do not observe the state since they don't need to refresh the screen when changed.
- Refactors UI Settings screen to separate components and remove the sharedViewModel
- Only starts Internal Tor if that option is selected in the TorSettings.
- Turn TorSettings into a data class to observe changes to it
- Drops the SharedPreferences ViewModel to use UISettingsFlow directly from App Modules
- Reorganizes OTS Events after simplification of the OkHttp based on TorSettings.
2025-09-11 18:04:10 -04:00
davotoula 8f1027b55d refactor
Removed duplicate GalleryImage boilerplate.
Use .chunked()
Pull out constants (ASPECT_RATIO, IMAGE_SPACING).
2025-09-11 21:52:36 +02:00
davotoula 4dace5aaf8 refactor using takeWhile
Fix edge case with white space before images
2025-09-11 21:03:06 +02:00
davotoula 8cb9d13567 Use constrained LazyVerticalGrid with calculated height for more than 20 images for performance reasons
added vertical spacing for some padding
Fixing scrollable gallery issue
2025-09-11 21:01:12 +02:00
davotoula f092326dcd Fixing scrollable gallery issue 2025-09-11 20:58:39 +02:00