Commit Graph
100 Commits
Author SHA1 Message Date
William Casarin acbd09bf6f ------ ephemeral relays -------
Add docs
2023-05-10 13:31:53 -07:00
William Casarin 1fe54380b8 relay: make RelayInfo encoding more flexible
So that we don't fail relay list decoding as easy
2023-05-10 13:25:46 -07:00
William Casarin fe6d7e5118 relay: split descriptors to {our,all}_descriptors
Now that we have ephemeral relays, we don't want them used everywhere
2023-05-10 13:25:40 -07:00
William Casarin 1367be0d10 relay: handle ephemeral relays in PostBox
We need to make sure ephemeral relay events (not ephemeral events) are
handled properly in the postbox. Make sure we pass the proper
skip_ephemeral flag to the relay pool if we add something like a NWC
event to the PostBox. Events are not sent to ephemeral relays by
default.
2023-05-10 12:01:26 -07:00
William Casarin 32a1a24e39 pool: skip ephemeral relays by default
Also filter relays by read/write once we introduce that
2023-05-10 12:01:26 -07:00
William Casarin 7267662330 relay: introduce ephemeral relays
Epehmeral relays are relays that are connected in your relay pool but
not a part of your official relay list. This will be used by
nostr-wallet-connect to communicate with an NWC relay to pay invoices.
2023-05-10 12:01:26 -07:00
William Casarin 1da0a8ee52 nostr: add is_{read,write} helpers on requests
This will be handy in the future when we properly filter relay lists by
RelayInfo
2023-05-10 12:01:26 -07:00
William Casarin 23aab6710a Fix DM sorting test 2023-05-10 11:01:40 -07:00
William Casarin 221fffe523 Fix tests
This reverts commit dff5987d3c.
2023-05-09 20:23:08 -07:00
William Casarin 5d72b4d007 dms: generalize create_dm into create_encrypted_event
We will need this for encrypting notes other than DMs (NWC)
2023-05-09 18:57:04 -07:00
William Casarin dff5987d3c settings: mark UserSettings as changed in KeychainStorage properties
Maybe this isn't strictly needed at the moment, but to remain consistent
with the Settings and StringSettings property wrapper we will do this.
2023-05-09 18:57:04 -07:00
William Casarin bfffd63dab ui: use darker border colors in BigButton
Might need to update the other buttons as well in the share sheet
2023-05-09 18:57:04 -07:00
William Casarin 1db425fd69 ui: add AlbyButton
This will be used for alby's nostr wallet connect implementation
2023-05-09 18:57:04 -07:00
William Casarin 27caffd91f ui: add alby logo for the AlbyButton 2023-05-09 18:57:04 -07:00
William Casarin a13efb7832 ui: move gradient components to their own group 2023-05-09 18:57:04 -07:00
William Casarin e3b3c9dedd ui: add QR CodeScanner helpers 2023-05-09 18:57:04 -07:00
William Casarin 904fe2bc0a pool: ocd change
I'm not a fan of $0, etc
2023-05-09 18:57:04 -07:00
William Casarin ccd76066d1 switch to v1.5 2023-05-08 12:38:08 -07:00
William Casarin 4ccc763072 Fix changelog 2023-05-08 11:55:44 -07:00
William Casarin 484ebd655b Merge remote-tracking branch 'github/master' 2023-05-08 11:53:21 -07:00
William Casarin 1582eb2e2f v1.4.3 changelog 2023-05-08 11:52:05 -07:00
William Casarin f95498a6fa v1.4.3 - AppStore release 2023-05-08 11:47:19 -07:00
William Casarin 5f64f54ef5 Fix previews in DMs
TODO: maybe we need to just add this to NoteContentView?

I don't want to do this just yet though because I'm about to cut a
release and I don't want to introduce new bugs.
2023-05-08 11:14:56 -07:00
William Casarin 0da10eb716 build 23 2023-05-08 10:56:35 -07:00
William Casarin 9b99e00804 Reconnect on failed ping and remove reconnect timer
I think this does it
2023-05-07 12:00:37 -07:00
William Casarin a4d4ad72e6 build 22 2023-05-07 11:28:33 -07:00
William Casarin 8c55f23ea8 Don't put reconnect logic in ping
It seems to be very bad
2023-05-07 11:28:33 -07:00
William Casarin b43aca8abb build 21 changelog 2023-05-07 10:39:26 -07:00
William Casarin 86687b6289 v1.4.3-21 2023-05-07 10:38:21 -07:00
William Casarin 84174ef9ad Ping relays on resume, if there's an error then try to reconnect
This is an attempt to fix the fail-to-reconnect issues. Let's see if it works.
2023-05-07 10:28:36 -07:00
William Casarin a007e18add Dismiss bookmarks view when switching tabs
Changelog-Fixed: Dismiss bookmarks view when switching tabs
2023-05-07 09:30:05 -07:00
William Casarin 0f5e1dfb81 Properly scroll DM view when keyboard is open
Less DM jank!

Changelog-Fixed: Properly scroll DM view when keyboard is open
2023-05-05 16:13:17 -07:00
William Casarin a5cb10ddaa HomeView: refactor
Trying to clean this view up a bit
2023-05-05 14:24:24 -07:00
William Casarin 4402d4bdf5 dms: use lazyvstack
It gets too poppy otherwise

Changelog-Fixed: Made DMs less poppy
2023-05-05 14:24:11 -07:00
William Casarin 0f89d98513 Revert "Added new icons for hashtags and updated the current ones to use a proper ratio."
This breaks the look of some hashtags

This reverts commit c7129531c2.
2023-05-05 08:53:57 -07:00
William Casarin 21be1416f7 Don't preload pfps, it's not thread safe? 2023-05-05 08:38:03 -07:00
William Casarin 9efdda43f2 Ensure we have proper sizes on iconography 2023-05-05 08:31:47 -07:00
William Casarin 27fb4e797d v1.4.3-20 changelog 2023-05-04 09:08:40 -07:00
William Casarin e6b4b2a437 v1.4.3-20 2023-05-04 09:05:59 -07:00
William Casarin add1e6104e Add webp image support
Kingfisher already supports this... wtf we doing

Changelog-Added: Add webp image support
2023-05-03 17:29:26 -07:00
William Casarin 5c557bc87d Don't process blurhash if we already have image cached
Changelog-Fixed: Don't process blurhash if we already have image cached
2023-05-03 17:29:26 -07:00
William Casarin af407f7eea Home now dismisses reactions view
Changelog-Fixed: Home now dismisses reactions view
2023-05-03 17:29:26 -07:00
William Casarin ac2e7d108d refactor sidemenu items 2023-05-03 17:29:26 -07:00
William Casarin 39a324fd1e Optimize json processing and preloading
- Preload events when added to the EventHolder queue
- Remove relative time formatting from preloader. Just do it when event appears
- Process incoming json in a background queue by default

Changelog-Fixed: Fix wrong relative times on events
Changelog-Changed: Preload events when they are queued
2023-05-03 10:36:10 -07:00
William Casarin 3b541f2ec1 Fix small bug in like counters 2023-05-03 06:36:42 -07:00
William Casarin 80ea37a102 Don't spam reconnects on error 2023-05-03 06:36:33 -07:00
William Casarin 91fc0039eb build 19 2023-05-02 08:23:58 -07:00
William Casarin 8eb013f1f7 Search hashtags automatically
Changelog-Changed: Search hashtags automatically
2023-05-02 08:22:36 -07:00
William Casarin 4f459d128a Load profiles in hashtag searches
Changelog-Fixed: Load profiles in hashtag searched
2023-05-02 07:53:06 -07:00
William Casarin 58e53631c6 Use cached note language in search model
We should never call event.note_language on the main thread
2023-05-02 07:53:06 -07:00
William Casarin 7b2e178f5b Fix warning 2023-05-02 07:53:06 -07:00
William Casarin da99130b78 build 18 2023-05-02 07:51:29 -07:00
William Casarin b79d361016 Preload profile pictures while scrolling
Changelog-Added: Preload profile pictures while scrolling
2023-05-02 07:33:54 -07:00
William Casarin 4889c0a7d9 Fix weird #\[0] artifacts appearing in posts and translated from english bugs
This changes the preloader to load things right away and fixes a bunch
of bugs

Changelog-Fixed: Fix weird #\[0] artifacts appearing in posts
Changelog-Fixed: Fix "translated from english" bugs
2023-05-02 06:48:02 -07:00
William Casarin 61c9732acd Fix crash when loading DMs in the background
Changelog-Fixed: Fix crash when loading DMs in the background
2023-05-02 06:48:02 -07:00
William Casarin ee6c080af8 Fix blurhash appearing behind loaded images when swiping on carousel
Changelog-Fixed: Fixed blurhash appearing behind loaded images when swiping on carousel
2023-05-02 06:48:02 -07:00
William Casarin a18ba86157 refactor: remove redundant rectangle in ImageCarousel 2023-05-02 06:48:02 -07:00
William Casarin 5b97906138 build 17 2023-04-30 22:30:25 -07:00
William Casarin c74d3e4938 fix some translation bugs 2023-04-30 22:04:33 -07:00
William Casarin df6911f9cb cache note language 2023-04-30 21:40:11 -07:00
William Casarin 1ca0519e25 Event Preloading
Changelog-Added: Added event preloading when scrolling
Changelog-Added: Preload images so they don't pop in
Changelog-Fixed: Fixed preview elements popping in
Changelog-Changed: Cached various UI elements so its not as laggy
Changelog-Fixed: Fixed glitchy preview
2023-04-30 20:06:38 -07:00
William Casarin c87f19b479 v1.4.3-15 changelog 2023-04-29 08:46:43 -07:00
William Casarin 68ed3d7796 Fix nip10 thread incompatibility for clients that add more than one reply tag
Changelog-Fixed: Fix thread incompatibility for clients that add more than one reply tag
2023-04-29 07:49:10 -07:00
William Casarin 2aee84c65f Add q tag to quote renotes
Changelog-Added: Add q tag to quoted renotes
2023-04-28 17:54:44 -07:00
William Casarin 76c6ac0f0b Add referencedid helpers 2023-04-28 17:54:44 -07:00
William Casarin be08083b88 Load zaps instantly on events
Refactor our event cache a bit and add zap caching

Changelog-Changed: Load zaps instantly on events
2023-04-28 17:25:31 -07:00
William Casarin c2325a5e39 always process events 2023-04-28 13:03:26 -07:00
William Casarin 3eb544e40d build 13 2023-04-28 13:00:44 -07:00
William Casarin 9d209f485c Preserve order of bookmarks when saving
Changelog-Fixed: Preserve order of bookmarks when saving
2023-04-27 13:04:46 -07:00
William Casarin e89c025d9d Remove blurhash opacity 2023-04-27 10:30:31 -07:00
William Casarin 0970c364b6 Tweak fade speed and opacity on blurhash placeholders 2023-04-26 15:41:30 -07:00
William Casarin d16192e845 Show blurhash placeholders from image metadata
Changelog-Added: Show blurhash placeholders from image metadata
2023-04-26 15:21:12 -07:00
William Casarin 3b50f82094 Add image metadata to image uploads
Adds blurhash and image dimensions. This is an alternative and backwards
compatible version of NIP94 for images in kind1 notes.

Changelog-Added: Add image metadata to image uploads
2023-04-26 10:53:13 -07:00
William Casarin 46b53e1326 Add BinaryParser
Didn't end up using this, but might be useful in the future
2023-04-26 10:53:13 -07:00
William Casarin 225a028f3e build 12 2023-04-25 15:21:16 -07:00
William Casarin d074d092a2 Fix crash when you have invalid relays in your relay list
Changelog-Fixed: Fix crash when you have invalid relays in your relay list
2023-04-25 15:06:09 -07:00
William Casarin 633fcd69a8 build 11 2023-04-25 14:31:13 -07:00
William Casarin 67869394cb Fix permanent OnlyZaps (likes broken lol) 2023-04-25 12:43:02 -07:00
William Casarin 22876b5c28 v1.4.3-10 changelog 2023-04-25 09:43:49 -07:00
William Casarin 6f7d6d1933 build 10 2023-04-25 08:57:45 -07:00
William Casarin fddd86b207 Revert "Remove unneeded periodic reconnect timer"
This reverts commit ed058afc3b.
2023-04-25 08:57:45 -07:00
William Casarin 4c82176466 Merge remote-tracking branch 'github/translations' 2023-04-25 08:57:45 -07:00
William Casarin ed058afc3b Remove unneeded periodic reconnect timer 2023-04-24 18:21:12 -07:00
William Casarin 624d9662d7 Merge remote-tracking branch 'github/translations' 2023-04-24 16:20:19 -07:00
William Casarin 88db9de4ea Fix reposts on macos 2023-04-24 15:38:11 -07:00
William Casarin d667a9d8f7 Fix custom zap button hitboxes
Suggested-by: eric
2023-04-24 10:51:47 -07:00
William Casarin f5cdd4a159 You can now change the default zap type
Changelog-Added: You can now change the default zap type
2023-04-23 10:31:51 -07:00
William Casarin c4f41220e5 refactor: extract ZapTypePicker into its own file 2023-04-23 09:54:38 -07:00
William Casarin 0f119d34e6 Change 500 custom zap amount to 420🌿
Suggested-by: Terry
Changelog-Changed: Change 500 custom zap to 420
2023-04-23 08:54:13 -07:00
William Casarin ea90fb0429 Make custom zap amounts into a grid 2023-04-23 08:40:33 -07:00
William Casarin cbd92539a6 Merge remote-tracking branch 'github/translations' 2023-04-23 04:36:16 -07:00
William Casarin 7940e6fd32 Fix tests 2023-04-23 04:36:16 -07:00
William Casarin fd8ad494e9 Add partial support for different repost variants
Changelog-Added: Add partial support for different repost variants
2023-04-22 12:11:45 -07:00
William Casarin f14ba7cce4 Fix potentially buggy media uploader setting 2023-04-22 12:11:45 -07:00
William Casarin 055b13c1cd Fix buggy zap amounts and wallet selector settings
Changelog-Fixed: Fix buggy zap amounts and wallet selector settings
2023-04-22 12:10:10 -07:00
William Casarin 357e8adf86 Refactor disable_animation setting
Pass it down from the top instead of using a function which goes around
our settings store
2023-04-22 12:08:24 -07:00
William Casarin 084c86eb0e Only show friends, not friend-of-friend in friend filter
Changelog-Changed: Only show friends, not friend-of-friend in friend filter
2023-04-22 11:15:45 -07:00
William Casarin 00aa897f05 build 8 2023-04-21 17:48:34 -07:00
William Casarin 71a1a6f0a3 Add some default height to images 2023-04-21 17:45:58 -07:00
William Casarin 9d22f40a53 Remove some cruft 2023-04-21 17:15:23 -07:00