Bryan Montz
fe4277e817
simplified call site usage of NostrFilter
2023-05-29 12:19:27 -07:00
Bryan Montz
ea73c5252d
Merge branch 'master' into user-cache
2023-05-26 06:46:47 -05:00
1769b08147
Fix reaction notification title to be consistent with ReactionView
...
Changelog-Fixed: Fix reaction notification title to be consistent with ReactionView
Closes : #1137
2023-05-24 15:20:02 -07:00
William Casarin
47a74257c8
nwc debugging
2023-05-24 15:16:45 -07:00
William Casarin
bffa42a13a
Supporter Badges
2023-05-15 11:57:37 -07:00
William Casarin
a6745af519
Implement damus zap split donations using NWC
2023-05-15 09:41:26 -07:00
Bryan Montz
91113fbc6d
allow models to fetch profiles when they get stale
2023-05-15 08:33:35 -05:00
Bryan Montz
bc315dd571
remove identical function
2023-05-15 07:33:49 -05:00
William Casarin
631220fdcb
ui: add support damus ui in WalletView
...
This appears after you've connected your wallet
2023-05-14 22:24:12 -07:00
William Casarin
5aa0d6c3e1
settings: add donation_percent to settings
...
This will be used in damus donations splits
2023-05-14 22:24:12 -07:00
f9982e992a
Migrate away from sticky deprecated non-pubkey-scoped settings
...
Changelog-Fixed: Migrate away from sticky deprecated non-pubkey-scoped settings
Closes : #1124
2023-05-14 21:08:56 -07:00
William Casarin
d0c67237dd
nwc: remove requests from postbox
...
Since these are ephemeral events, there will never be command results,
so we need to remove them manually on NWC responses or else it will keep
trying to send them.
We should probably handle this for all ephemeral events in the postbox
somehow. We probably shouldn't use the postbox for ephemeral events
without response events.
2023-05-14 10:49:54 -07:00
William Casarin
8fb5b4f49c
misc logs
2023-05-14 00:03:51 -07:00
William Casarin
85262e1a4e
nwc: fix response parsing
2023-05-14 00:03:51 -07:00
William Casarin
69fc6694f1
nwc: turn pending zap orange when we have a NWC success
...
Orange means payment successful now, not just presence of zap
This introduces a paid pending state, which shows up as an orange timer
thing in the zaps view. This can be useful if the zap is never sent. We
don't want the user to think the payment didn't go through.
2023-05-13 23:30:03 -07:00
William Casarin
03691d0369
Pending Zaps
...
A fairly large change that replaces Zaps in the codebase with "Zapping"
which is a tagged union consisting of a resolved Zap and a Pending Zap.
These are both counted as Zaps everywhere in Damus, except pending zaps
can be cancelled (most of the time).
2023-05-13 21:33:34 -07:00
William Casarin
5cce18c8b6
nwc: attach lud16 to profile when attaching wallet
2023-05-10 14:07:24 -07:00
William Casarin
370a5feb4e
ui: add Nostr Wallet Connect views
2023-05-10 14:07:24 -07:00
William Casarin
996312cf1c
settings: Add nostr_wallet_connect setting
...
Stored in the keychain for security
2023-05-10 14:07:24 -07:00
William Casarin
d0216bbce6
nwc: Add WalletModel
...
This model will be used for controlling the logic in the Wallet views
2023-05-10 14:07:24 -07:00
Bryan Montz
43017828e2
fix user notifications from old events immediately shown on install and login
...
Changelog-Fixed: Fix user notifications from old events immediately shown on install and login
Closes : #1106
2023-05-08 11:02:12 -07:00
Bryan Montz
9847f12c95
Remove unused code
...
Closes : #1105
2023-05-08 11:01:04 -07:00
Bryan Montz
f78eeb1f22
Fix npub search fails on the first try
...
Co-authored-by: William Casarin <jb55@jb55.com >
Changelog-Fixed: Fix npub search fails on the first try
Closes : #1044
Closes : #1100
2023-05-07 09:50:49 -07:00
440ef02eaa
Update reaction notification title and miscellaneous localization fixes
2023-05-05 09:01:05 -07:00
45a78fa14f
Rename 'Liked by' to 'Reacted by'
2023-05-05 09:00:03 -07:00
Bryan Montz
e4860f3ba8
Replace Vault dependency with @KeychainStorage property wrapper
...
Changelog-Changed: replace Vault dependency with @KeychainStorage property wrapper
Closes : #1076
2023-05-04 15:57:02 -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
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
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
Bryan Montz
c679be9644
Top-level tab state restoration
...
Changelog-Added: Top-level tab state restoration
Closes : #634
2023-05-01 15:22:54 -07:00
9f701a7d44
Fix bug with reaction notifications referencing the wrong event
...
Changelog-Fixed: Fix bug with reaction notifications referencing the wrong event
Closes : #1047
2023-05-01 15:21:01 -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
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
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
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
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
Bryan Montz
0e94c48e26
Replace Starscream with URLSessionWebSocketTask
...
Changelog-Fixed: Fix slow reconnection issues
2023-04-24 18:11:07 -07:00
symbsrcool
6ac68b5a73
Add nokyctranslate translation option
...
Changelog-Added: Add nokyctranslate translation option
Closes : #946
2023-04-24 18:07:03 -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
8733cbd42c
Fix localization issues and export strings for translation
2023-04-24 01:25:07 +02: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
e934c2bb11
Fix crash with LibreTranslate server setting selection and remove delisted vern server
...
Broken after the settings refactor
Changelog-Fixed: Fix crash with LibreTranslate server setting selection and remove delisted vern server
Closes : #998
2023-04-22 12:33:11 -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
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
9d22f40a53
Remove some cruft
2023-04-21 17:15:23 -07:00