tyiu
6858d7e72f
Remove nonfunctional LibreTranslate servers
2023-09-30 12:54:31 -04:00
William Casarin
476f52562a
nostrdb: fix profiles not updating
...
Send relay pool events to nostrdb as well
Whenever we send events to relays, make sure we send them to nostrdb
at the same time.
Changelog-Fixed: Fix profile not updating
2023-09-24 17:07:09 -07:00
William Casarin
f591ad2dff
ndb: add process_client_event helper
...
This is a quick helper for the new client event processing functionality
2023-09-24 17:06:35 -07:00
William Casarin
dacade299d
ndb: bump nostrdb to support client->relay note processing
2023-09-24 17:06:04 -07:00
Suhail Saqan
cdacbcfdca
util: add ImageResizer to change size of images
2023-09-24 11:58:16 -07:00
Daniel D’Aquino
41e036cff2
Remove toolbar background from profile view for better looks
...
Device: iPhone 13 mini (Physical device)
iOS: iOS 17.0.1
Remarks: Some entitlements removed locally to be able to build to device without access to development certificate
Steps
-----
1. Go to the home timeline view.
2. Click on a profile on any post
3. Swipe back to the home timeline view (Do not press "back" button)
4. Click on that same profile again
5. Scroll down the profile
6. Make sure that toolbar looks good (Does not have a white background)
Results: Swiping back from profile does not cause any issues. View layout of the custom navbar looks good
Changelog-Fixed: Fix small graphical toolbar bug when scrolling profiles
Signed-off-by: Daniel D’Aquino <daniel@daquino.me >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-24 11:55:31 -07:00
tyiu
eb901a4d84
Fix localization issues and export strings for translation
...
Changelog-Fixed: Fix localization issues and export strings for translation
Signed-off-by: Terry Yiu <git@tyiu.xyz >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-24 11:33:51 -07:00
William Casarin
9f15688699
v1.6 (19)
2023-09-24 11:33:40 -07:00
Daniel D’Aquino
6d055be3cd
Fix UI freeze after swiping back from profile ( #1449 )
...
On iOS 17.0, swiping back from a view that uses
`.navigationBarHidden(true)` caused the `NavigationStack` view to
freeze. This fixes the issue by creating a custom toolbar using
`.toolbar` instead.
Issue reproduction steps
------------------------
I found a very good clue to reproduce this issue from
[https://damus.io/note162rt4fctxepnj9cdtr9a82k7jtw3e33hj742ejly3q84tkwsfars4k9glr ](https://damus.io/note162rt4fctxepnj9cdtr9a82k7jtw3e33hj742ejly3q84tkwsfars4k9glr )
**Device:** iPhone 13 mini (Physical device)
**iOS:** 17.0.1
**Damus:** 1.6 (18) 4377cf28ef
**Steps:**
1. Go to the home timeline view.
2. Click on a profile on any post
3. Swipe back to the home timeline view (Do not press "back" button)
4. Click on that same profile again
**Ideal behaviour:** On step 4, you should be taken to the profile view
**Actual behaviour:** The whole timeline view, top bar, etc seems to "freeze" and no longer respond.
Root causing investigation
--------------------------
I attempted various things until I could narrow it down. Here is a
summary of what I discovered:
1. First I attempted to investigate where the deadlock would live, by
analyzing the thread states in the debugger. However:
1. I did not find much differences between the thread states of a
normal app running and the app running after the issue
2. **I noticed that the tab bar at the bottom was still working, so
unless those views are running on different threads, it might not
have been a deadlock**
3. NostrDB ingested and writer threads seemed to be waiting on a
mutex most of the time I paused execution, but that also happened
under normal conditions
4. The crux of what made this difficult is that most of the UI
related threads were in assembly, which was harder to interpret.
However, the top of the stack in those threads were usually
`mach_msg_trap`, which I believe is just the debugger
interrupting execution. Below it, there were usually normal
assembly instructions being run, such as `mov` and `ldp`
instructions _(Move value and load a pair of registers)_, and
stepping through some of those seemed to move the program
counter. So I believe that the threads are running
5. Running `thread info` on some of the threads (e.g. main) revealed
that it seemed to be waiting on `mach_msg2_trap`, which again I
believe is just the debugger pausing execution.
2. **After some more testing, I realized that swiping back only breaks
when swiping back from the `ProfileView`, but not other views**
2. I tried to check if the issue was incorrect hashing of `Router`
objects: `NavigationStack` uses `NavigationPath`, which needs a
collection of hashable elements. I thought that if hashing was done
incorrectly, the NavigationStack might have issues managing views.
But that did not seem to be it either.
1. I tried experimenting with the hashing logic for the Profile
router. No changes
2. I tried purposefully messing up with the hashing logic of a good,
working view by adding random numbers into the hash. No issues on
swiping out of that view either.
3. That lead me to the possibility that the issue is within the
`ProfileView` body. I commented parts of the code out and tested each
portion of it in a binary search fashion, and narrowed it down a
specific line:
```
.navigationBarHidden(true)
```
Whenever I remove this line or set this to `false`, the freezing no
longer occurs. According to the Apple developer docs, this is
deprecated:
[https://developer.apple.com/documentation/swiftui/view/navigationbarhidden(_:) ](https://developer.apple.com/documentation/swiftui/view/navigationbarhidden(_:) )
I tried to replace it with its newer replacement: `.toolbar(.hidden,
for: .automatic)`, but that also causes the freeze.
So, just removing that line fixes the freeze, however it breaks the
layout by showing the unwanted back button.
Fix
---
I was able to fix it by implementing the custom toolbar under `.toolbar`
modifier, and hiding the back button (as opposed to the whole nav bar)
Testing of the fix
------------------
**PASS**
**Device:** iPhone 13 mini (Physical device)
**iOS:** iOS 17.0.1
**Damus:** This commit
**Special remarks:** Some entitlements removed locally to be able to
build to device without access to development certificate
**Test steps:** Same as reproduction steps
**Results:** Swiping back from profile does not cause any issues. View
layout of the custom navbar is unaltered in appearance.
iOS 16 smoke test
-----------------
**PASS**
**Device:** iPhone 14 Pro simulator
**iOS:** 16.4
**Damus:** This commit
**Special remarks:** Same as test above
**Test steps:** Same as reproduction steps. However here we are not
checking the freezing (as it was not reproducible in the simulator). We
are checking that the changes did not break navigation, nor layout, nor
caused any build issues.
**Results:** Working as expected
Closes: https://github.com/damus-io/damus/issues/1449
Changelog-Fixed: Fix UI freeze after swiping back from profile (#1449 )
Signed-off-by: Daniel D’Aquino <daniel@daquino.me >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-23 08:03:32 -07:00
William Casarin
01c6e3e9ab
v1.6 (18) changelog
2023-09-21 18:08:56 -04:00
William Casarin
4377cf28ef
v1.6 (18)
2023-09-21 18:05:59 -04:00
William Casarin
6f67c159ff
ndb: switch to case-insensitive profile searches
2023-09-21 18:03:22 -04:00
William Casarin
7a85ae29ca
search: switch to nostrdb profile searching
...
Changelog-Changed: Switch to nostrdb for @'s and user search
2023-09-21 13:19:22 -04:00
William Casarin
fafe3b4b3e
ndb: add nostrdb migrations
2023-09-21 09:10:06 -04:00
William Casarin
69c7acea76
tests: add ndb support to tests
...
stops it from crashing
2023-09-21 09:10:06 -04:00
William Casarin
22d635d850
ndb: don't verify flatbuffers in release builds
2023-09-21 09:10:06 -04:00
William Casarin
fc9b9f2940
ndb: switch profile queries to use transactions
...
this should ensure no crashing occurs when querying profiles
2023-09-21 09:10:06 -04:00
William Casarin
622a436589
ndb: add NdbTxn transaction class
...
This will be used for transactions
2023-09-21 09:10:06 -04:00
William Casarin
9398877415
nostrdb/c: update to include transaction support
2023-09-21 09:10:06 -04:00
William Casarin
129d3ff101
ids: introduce NoteKey
...
These will be used to reference nostr notes from nostrdb
2023-09-21 09:10:06 -04:00
William Casarin
bb4fd75576
nostrdb: add profiles to nostrdb
...
This adds profiles to nostrdb
- Remove in-memory Profiles caches, nostrdb is as fast as an in-memory cache
- Remove ProfileDatabase and just use nostrdb directly
Changelog-Changed: Use nostrdb for profiles
2023-09-21 09:10:06 -04:00
Daniel D’Aquino
8586eed635
ui: add followed hashtags to FollowingView
...
When users view who a certain person follows, now they will see an extra
tab to see the hashtags that they follow.
This new tab contains a list of followed hashtags, each of which
includes an option to follow/unfollow the hashtag, as well as the
ability to visit the hashtag timeline
Testing
**iOS:** 17.0 (iPhone 14 Pro Simulator)
**Damus:** (This commit)
**Test steps:**
1. Go to search view, search for a couple of hashtags: #apple, #orange, #kiwi
2. Go to the test accounts own profile via the drawer menu
3. Click on "Following". Make sure there are two tabs now.
4. Scroll down, switch tabs between "People" and "Hashtags". Make sure that scrolling and switching tabs work
5. Unfollow and follow a user. Make sure that this still works
6. Make sure that #apple, #orange, #kiwi hashtags are visible under the "Hashtags" tab
7. Unfollow "#kiwi". Check that the button label now switches from "Unfollow" to "Follow"
8. Click on "#kiwi". Make sure that it takes you to the page where posts with that hashtag appears
9. Go to @jb55's profile
10. Click on "Following"
11. Ensure that there is a "Hashtags" tab
12. Check that @jb55's followed hashtags are shown (not your own)
13. Follow one of the same hashtags as @jb55's
14. Go back to your own profile and go to your own following view again.
15. Make sure that this newly added tag is present on the list, and that #kiwi is not.
Closes: https://github.com/damus-io/damus/issues/606
Changelog-Added: Add followed hashtags to your following list
Signed-off-by: Daniel D’Aquino <daniel@daquino.me >
Reviewed-by: William Casarin <jb55@jb55.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-21 09:10:06 -04:00
William Casarin
440e37c1d3
filters: generalize ContentFilter
...
This simplifies our content filters so that it is a bit more flexible
for future additions.
Fixes: 0957cc896cc8 ("Add "Do not show #nsfw tagged posts" setting")
2023-09-21 09:10:06 -04:00
Daniel D’Aquino
49283f2bb2
filters: add "Do not show #nsfw tagged posts" setting
...
This commit adds a setting where the user can choose to hide notes with
a #nsfw hashtag. This setting was implemented to allow users to filter
out adult or other unsafe content.
I moved the code logic for content filtering into a new file, and
defined a protocol for content filters. Although the logic is still
simple, this might help in developing a flexible API in case we have
more complex filtering needs in the future.
I also modified the name of the "Appearance" setting to "Appearance and
filters", to make it easier for users to intuitively find this setting.
(Note: Re-translations of this string might be necessary)
**PASS**
**iOS:**
- iOS 17.0 (iPhone 14 Pro)
**Damus:** (This commit)
**Steps:**
1. Follow another account that you control (Account B)
2. On account B, post a note saying "#test this is a test". This note should show up on the home feed.
3. On account B, post a note saying "#nsfw this is a test". This note should NOT show up on the home feed
4. Go to settings and disable the NSFW filter. Go back to the home view. The #nsfw post should now show up.
5. Close app and reopen. NSFW post should still show up (i.e. Setting should be persistent)
6. Unfollow account B
7. Close app and reopen.
8. Follow the "#grownostr" hashtag
9. Turn on the NSFW filter
10. On account B, post a note saying "#grownostr this is a test". This note should show up on the home view.
11. On account B, post a note saying "#grownostr #nsfw this is a test". This note should NOT show up.
12. Double-check the "notes and replies" tab. Note should NOT show up there either.
12. Turn off NSFW filter
13. Note from step 11 should now show up.
14. Go to Universe view and find a post with a hashtag. Remember where the post is.
14. Locally change the tag keyword from "nsfw" to that hashtag (Note: I had to test this way because my posts were not showing up in the Universe view)
15. Turn off the filter. Check post is there, in the Universe view.
16. Turn on the filter. Check post is no longer there in the Universe view. (Check the neighboring posts are the same, to make sure)
17. Bring back the code to its normal state.
18. Search for "#nsfw". Make sure that #nsfw appears (I believe this is ok, because it means the person is purposefully searching for it)
Closes: https://github.com/damus-io/damus/issues/1412
Changelog-Added: Add "Do not show #nsfw tagged posts" setting
Signed-off-by: Daniel D’Aquino <daniel@daquino.me >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-21 09:10:06 -04:00
William Casarin
305ee03b0e
relays: fix tld extraction performance issues
...
This uses a simpler variant that doesn't require a library. It is also
much faster and doesn't cause a delay when you open the relay view.
Not sure why I needed to touch other parts of the code to make the build
work. Probably xcode beta thing?
2023-09-21 09:10:06 -04:00
William Casarin
a88f5db10b
Revert "deps: add tldextract"
...
This reverts commit 4263b9690f .
2023-09-21 08:48:20 -04:00
Suhail Saqan
d39a3da3b7
util: add separate_images and separate_invoices
2023-09-21 08:37:42 -04:00
ericholguin
40459e247e
relays: user relay design
2023-09-16 14:15:27 -05:00
ericholguin
fff4549933
relays: remove usage of show action button binding
2023-09-16 14:15:27 -05:00
ericholguin
c4dfae9ede
relays: update relay view to use new design
...
Changelog-Changed: Updated relay view
Closes: https://github.com/damus-io/damus/pull/1543
2023-09-16 14:15:27 -05:00
Daniel D’Aquino
bfda0d1b74
ui: increase size of the hitbox on note ellipsis button
...
Changelog-Changed: Increase size of the hitbox on note ellipsis button
Closes: https://github.com/damus-io/damus/issues/1454
Signed-off-by: Daniel D’Aquino <daniel@daquino.me >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-16 14:15:20 -05:00
Daniel D’Aquino
01b8e43a6e
compose: fix text wrapping issue when mentioning npub
...
Closes: https://github.com/damus-io/damus/issues/1211
Changelog-Fixed: Fix text composer wrapping issue when mentioning npub
Signed-off-by: Daniel D’Aquino <daniel@daquino.me >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-16 13:58:27 -05:00
Jon Marrs
aa4ecc2139
test: add test cases for ASCII and UTF-8 characters in hashtags
...
Closes: https://github.com/damus-io/damus/pull/1546
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-15 12:31:17 -05:00
Jon Marrs
617dee3e6b
damus-c: remove UTF-8 punctuation from hashtags
...
Check for UTF-8 punctuation (such as ellipsis) in addition to regular punctuation in hashtags.
Closes: https://github.com/damus-io/damus/issues/1518
Closes: https://github.com/damus-io/damus/pull/1546
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-15 12:31:17 -05:00
Daniel D’Aquino
510432bb98
ui: make blurred videos viewable by allowing blur to disappear once tapped
...
Closes: https://github.com/damus-io/damus/issues/1247
Changelog-Fixed: Make blurred videos viewable by allowing blur to disappear once tapped
Signed-off-by: Daniel D’Aquino <daniel@daquino.me >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-15 12:31:05 -05:00
Jericho Hasselbush
c4a9f2fdb2
ui: hold tap to preview status URL
...
Applied a WKWebkitView inside a .contextMenu to show preview status for
URL links in user status messages.
Closes: https://github.com/damus-io/damus/issues/1523
Changelog-Added: Hold tap to preview status URL
Signed-off-by: Jericho Hasselbush <jericho@sal-et-lucem.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-15 12:30:26 -05:00
Daniel D’Aquino
b1e0a62109
nwc: fix parsing issue with NIP-47 compliant NWC urls without double-slashes
...
Closes: https://github.com/damus-io/damus/issues/1547
Changelog-Fixed: Fix parsing issue with NIP-47 compliant NWC urls without double-slashes
Signed-off-by: Daniel D’Aquino <daniel@daquino.me >
Reviewed-by: William Casarin <jb55@jb55.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-13 12:59:21 -06:00
William Casarin
1fc5ceff3b
relays: fix withAnimation on older versions
...
Maybe this is an iOS17 thing?
2023-09-13 05:41:08 -07:00
William Casarin
16edc3fe13
relays: bouncy edit animation
2023-09-11 14:39:44 -07:00
William Casarin
6a88ca2777
relays: fix crash in new RelayPicView
2023-09-11 14:36:08 -07:00
William Casarin
e3ccf95780
ui: fix padding of username next to pfp on some views
...
Changelog-Fixed: Fix padding of username next to pfp on some views
2023-09-11 14:36:08 -07:00
Bryan Montz
9bac83352b
ui: improve bottom spacing for ImageView's tab indicator dots
...
Signed-off-by: Bryan Montz <bryanmontz@me.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-11 14:36:08 -07:00
Bryan Montz
0803594553
ui: make ImageView's tab indicator dots tappable
...
Changelog-Changed: Make carousel tab dots tappable
Signed-off-by: Bryan Montz <bryanmontz@me.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-11 14:35:50 -07:00
Jericho Hasselbush
8dad8e6703
posting: fix issue with username and multiple emojis
...
Fixes issue where username with multiple emojis would place cursor in
strange position. Now properly moves the cursor to space past the
multiple emoji user name.
Any amount would be great. Not a complex issue to fix!
Tipjar: lnbc1pj0eddtpp5km07jgrfm47nfswqqp33ngv374gzad2hshkra7zm3l0cmpusnp3qdqqcqzzsxqyz5vqsp5rklkzj9upf32z3c3nmc9xg4pdlz5p5mp3s332ygefexf79tq8ucs9qyyssqxfh4kz3sg9zczsnj49w23aw35z87jwyx9m5su8kkyxlspyjk4ajy7vhxuw2rzw4lz8vfutfakm2rggvpzhzs9ehfus4nl683dl99f4sqgm9zkq
Changelog-Fixed: Fixes issue where username with multiple emojis would place cursor in strange position.
Signed-off-by: Jericho Hasselbush <jericho@sal-et-lucem.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-11 07:48:36 -07:00
William Casarin
e30d38e69f
router: use tap gestures instead of nav links
...
I was hoping this would fix something but it did not
2023-09-10 18:27:37 -07:00
William Casarin
c13f29e98c
router: hash bytes for a quick sanity check
...
probably a no-op
2023-09-10 18:27:37 -07:00
William Casarin
5b901656f3
perf: fix weird lag when switching timelines
2023-09-10 18:25:35 -07:00
William Casarin
36acdf420e
perf: remove zstack on profile pictures
...
helps a bit? I think?
2023-09-10 18:25:35 -07:00
William Casarin
76a6dbc406
perf: remove unused zstack on like button
2023-09-10 18:25:35 -07:00
William Casarin
1b1d4bd6d1
perf: use plain images for actionbar buttons
...
The action bar is really slow to render for some reason, start
removing stuff
2023-09-10 18:25:35 -07:00
William Casarin
14586b616c
log: remove some verbose preload logs
2023-09-10 18:25:35 -07:00
ericholguin
7baf7e66dc
relays: add relay pic view for displaying relay icons
2023-09-10 09:54:35 -07:00
William Casarin
4263b9690f
deps: add tldextract
...
This is needed for the new relay view
2023-09-10 09:52:54 -07:00
Suhail Saqan
7f6a702412
emojis: make width dynamic and font bigger
...
add calculateOverlayWidth to support this
Closes: https://github.com/damus-io/damus/pull/1542
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-09 10:24:14 -07:00
ericholguin
6f35de65f9
relays: add icon field to metadata
2023-09-09 09:48:18 -07:00
ericholguin
65f3651896
ui: dont display globe image for free relay types
2023-09-09 09:45:45 -07:00
ericholguin
94ce604b9d
components: add neutral button style component
2023-09-09 09:45:16 -07:00
ericholguin
b934d66f64
components: add lighter gradient
2023-09-09 09:45:16 -07:00
ericholguin
20b6627799
colors: add variables for the new color assets
2023-09-09 09:45:16 -07:00
ericholguin
3e15f15a57
colors: add color sets from figma
2023-09-09 09:45:15 -07:00
petrikaj
5c87b8e610
transations: add finnish translation
...
Changelog-Added: Finnish translations
Closes: https://github.com/damus-io/damus/pull/1535
Reviewed-by: William Casarin <jb55@jb55.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-07 10:33:37 -07:00
William Casarin
42234b1cf3
remove timeline render logs
2023-09-07 10:33:37 -07:00
Bryan Montz
54ba64535d
video: remove GSPlayer dependency
...
Changelog-Fixed: Fixed audio in video playing twice
Closes: https://github.com/damus-io/damus/pull/1539
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-07 10:33:34 -07:00
Bryan Montz
9cf53a9e93
video: remove VideoPlayer and switch to VideoController for cache
...
Closes: https://github.com/damus-io/damus/pull/1539
Reviewed-by: William Casarin <jb55@jb55.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-07 10:33:31 -07:00
Bryan Montz
3569da5687
video: switch player to use new view model
...
pass VideoController through containing views
Closes: https://github.com/damus-io/damus/pull/1539
Reviewed-by: William Casarin <jb55@jb55.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-07 10:33:19 -07:00
Bryan Montz
f1f3abfb98
video: add DamusVideoPlayerViewModel
...
Closes: https://github.com/damus-io/damus/pull/1539
Reviewed-by: William Casarin <jb55@jb55.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-07 10:33:14 -07:00
Bryan Montz
dec07df2c1
video: add VideoController, which hold cached metadata and mute states
...
Closes: https://github.com/damus-io/damus/pull/1539
Reviewed-by: William Casarin <jb55@jb55.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-07 10:33:12 -07:00
Bryan Montz
53734ea483
video: add AVPlayerView, a simple wrapper for AVPlayerViewController
...
Closes: https://github.com/damus-io/damus/pull/1539
Reviewed-by: William Casarin <jb55@jb55.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-07 10:33:07 -07:00
Grimless
b18a0c573e
profile: move the "Follow you" badge into the profile header
...
Move the "Follow you" badge into the profile header he profile header
out-of-line with the often long and already space-constrained
username/display name text
Changelog-Changed: Move the "Follow you" badge into the profile header
Closes: https://github.com/damus-io/damus/pull/1529
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-03 18:02:54 -07:00
Grimless
f6f7d13f12
Properly implement top-level tests and fix one test using the wrong Block conversion property
...
Closes: https://github.com/damus-io/damus/pull/1528
Reviewed-by: William Casarin <jb55@jb55.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-03 18:02:32 -07:00
Grimless
6ee0be40e9
Create helper extensions for Block and update tests for the Block helper model
...
Closes: https://github.com/damus-io/damus/pull/1528
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-03 18:02:32 -07:00
Grimless
a64f898df7
Move the Block helper type to its own file, collapse the various standalone functions for parsing block data, and refactor consumers to initialize a Block with given data and access its members as needed.
...
Closes: https://github.com/damus-io/damus/pull/1528
Signed-off-by: William Casarin <jb55@jb55.com >
2023-09-03 18:02:32 -07:00
Jon Marrs
dd29e87146
test: pass keypair instead of privkey for test cases
...
Tests were not building due to recent changes in the Damus source code that replaced privkey with keypair. This patch extends those changes to the test cases, allowing the tests to build and pass.
Signed-off-by: Jon Marrs <jdmarrs@gmail.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-08-31 08:52:28 -07:00
William Casarin
c71b0ee916
blocks: pass keypair instead of privkey to avoid pubkey gen
...
Generating a pubkey is quite slow, so pass a keypair instead of privkey
2023-08-28 11:47:29 -07:00
William Casarin
8e92e28faf
test: optionally remove lmdb db
...
otherwise tests fail on CI
2023-08-28 10:34:37 -07:00
William Casarin
5657512370
ndb: restore escaped slash fix
2023-08-28 10:09:49 -07:00
William Casarin
882f6e2534
ndb: update nostrdb, fix alignment issues
2023-08-28 08:19:03 -07:00
William Casarin
2f60888fb1
ndb: remove patch from copy script, just use sed
2023-08-28 08:18:25 -07:00
William Casarin
ba6792640d
flatbuffers: update bindings, add verifier
2023-08-28 08:17:25 -07:00
William Casarin
984c7b6932
ndb: ensure profile flatbuffers are not copied
...
These are pointers into LMDB's virtual memory map of the database. No
copy required.
2023-08-28 08:00:45 -07:00
William Casarin
0bbc2c6348
ndb: save in documents instead of cache dir
...
This is more long term storage
2023-08-28 08:00:45 -07:00
William Casarin
c44c0d0863
profile: remove deleted flag
...
it's not used anymore
2023-08-28 08:00:45 -07:00
William Casarin
50d55572be
Fix crash when long pressing custom reactions
...
Changelog-Fixed: Fix crash when long pressing custom reactions
2023-08-28 08:00:45 -07:00
William Casarin
caffa0398b
nostrdb: profile flatbuffers in nostrdb working!
2023-08-26 20:46:42 -07:00
William Casarin
92bbc9766d
project: disable compile warnings for lmdb and nostrdb
2023-08-26 20:46:42 -07:00
William Casarin
699f77d9e1
add extended virtual memory entitlement
...
This will allow larger nostrdb databases
2023-08-26 20:46:42 -07:00
William Casarin
4c0166bd31
add swift flatbuffers
2023-08-26 20:46:42 -07:00
William Casarin
35b67dc08d
nostrdb: initial Ndb class
2023-08-26 17:11:41 -07:00
William Casarin
1f5f1e28a4
nostrdb: pull latest, adding flatcc and lmdb
2023-08-25 19:05:34 -07:00
William Casarin
f30f93f65c
Revert "Move the Block helper type to its own file"
...
This fixes the broken tests
This reverts commit 286ae68fd6 .
2023-08-25 19:05:34 -07:00
William Casarin
7255481705
v1.6 (17) changelog
2023-08-23 17:49:30 -07:00
William Casarin
16fa701509
v1.6 (17)
2023-08-23 17:48:32 -07:00
William Casarin
2c6999e15c
status: support clickable status urls
...
Changelog-Added: Add support for status URLs
2023-08-23 17:46:31 -07:00
William Casarin
981d500c25
status: click music urls to display in spotify
...
Changelog-Added: Click music statuses to display in spotify
2023-08-23 17:17:53 -07:00
William Casarin
d02fc9142d
status: add settings for disabling statuses in the UI
...
Suggested-by: Tanel
Changelog-Added: Add settings for disabling user statuses
2023-08-23 16:43:55 -07:00
William Casarin
db59f74970
status: add missing status to some thread event views
2023-08-23 16:31:10 -07:00
William Casarin
bf3ca4a186
status: truncate statuses to a single line
...
Changelog-Fixed: Fix long status lines
2023-08-23 16:23:18 -07:00
William Casarin
53c2b3a48d
status: clear statuses if they only contain whitespace
...
Changelog-Changed: clear statuses if they only contain whitespace
2023-08-23 16:19:19 -07:00
William Casarin
23a8d6fb6b
status: fix status events not expiring locally
...
Changelog-Fixed: Fix status events not expiring locally
2023-08-23 16:11:48 -07:00
William Casarin
042b7da315
status: ignore processing expired events
2023-08-23 15:56:41 -07:00
William Casarin
e62ba5826b
v1.6-16 changelog
2023-08-23 13:31:41 -07:00
William Casarin
1d11bb40b5
v1.6 (16)
2023-08-23 13:30:38 -07:00
William Casarin
0338297bfe
Live Music & Generic Statuses
...
Changelog-Added: Added live music statuses
Changelog-Added: Added generic user statuses
2023-08-23 13:26:55 -07:00
William Casarin
59cf8056bd
sidemenu: split out profile section
...
We will be adding to this and it is getting messy
2023-08-23 09:52:50 -07:00
William Casarin
d34d417fcc
home: collapse guard statement
...
small nit refactor
2023-08-23 09:27:09 -07:00
William Casarin
b665a40a11
fix build
2023-08-23 09:25:47 -07:00
gladiusKatana
5caa4a6e97
videos: improve precision & sensitivity of auto-pause mechanism
...
Closes: https://github.com/damus-io/damus/pull/1308
Signed-off-by: William Casarin <jb55@jb55.com >
2023-08-23 09:24:13 -07:00
Grimless
c5d8e4a4a1
Simplify and inline Report event logic.
...
Closes: https://github.com/damus-io/damus/pull/1498
Signed-off-by: William Casarin <jb55@jb55.com >
2023-08-23 09:13:38 -07:00
tappu75e@duck.com
8b600a9774
Avoid notification for zap from mute profiles
...
Changelog-Fixed: Avoid notification for zaps from muted profiles
Closes: https://github.com/damus-io/damus/pull/1494
Signed-off-by: William Casarin <jb55@jb55.com >
2023-08-23 09:10:22 -07:00
Grimless
286ae68fd6
Move the Block helper type to its own file
...
Collapse the various standalone functions for parsing block data, and
refactor consumers to initialize a Block with given data and access its
members as needed.
Closes: https://github.com/damus-io/damus/pull/1496
Signed-off-by: William Casarin <jb55@jb55.com >
2023-08-21 17:11:43 -07:00
William Casarin
6ab893a617
profile: remove redundant view builder
2023-08-21 13:26:33 -07:00
William Casarin
9bfb59c4cc
docs: people like centralized tools
...
This was confusing people, make it clear that github PRs are fine
2023-08-21 13:26:33 -07:00
Daniel D’Aquino
dcb94635ea
Fix text editing issues on characters added right after mention link
...
Changelog-Fixed: Fix text editing issues on characters added right after mention link
Closes: https://github.com/damus-io/damus/issues/1375
Signed-off-by: Daniel D’Aquino <daniel@daquino.me >
Tested-by: William Casarin <jb55@jb55.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-08-20 17:25:06 -07:00
Fishcake
c464a26151
use nostr.build api v2 with optional nip98 support
...
Closes: https://github.com/damus-io/damus/pull/1471
Signed-off-by: William Casarin <jb55@jb55.com >
2023-08-20 16:29:33 -07:00
Fishcake
9104ddb051
add function to create nip98 http authorization header
...
Closes: https://github.com/damus-io/damus/pull/1471
Signed-off-by: William Casarin <jb55@jb55.com >
2023-08-20 16:29:33 -07:00
Fishcake
1432087edf
add nostr event 27235 (nip-98)
...
Closes: https://github.com/damus-io/damus/pull/1471
Signed-off-by: William Casarin <jb55@jb55.com >
2023-08-20 16:29:33 -07:00
William Casarin
ae2f7255a7
Mute hellthreads everywhere
...
Changelog-Fixed: Mute hellthreads everywhere
Fixes: https://damus.io/note1rn3ckl76myga6xcefr0le52d8czd0wqe8apguewqknyv7m55mmpq3rv3hv
2023-08-20 11:45:25 -07:00
William Casarin
d5b944170f
actually build 15 because reasons
2023-08-20 11:25:01 -07:00
William Casarin
9fb1cc5b57
v1.16 (13) changelog
2023-08-18 11:20:51 -07:00
William Casarin
2e512317e7
v1.6 (13)
2023-08-18 10:10:18 -07:00
tappu75e@duck.com
f9eb669132
replies: fix bug where it would sometimes show -1
...
Changelog-Fixed: Fix bug where it would sometimes show -1 in replies
Closes: https://github.com/damus-io/damus/pull/1476
2023-08-18 08:41:21 -07:00
Daniel D‘Aquino
066b3cdde8
Fix image links appearing with escaped slashes
...
Changelog-Fixed: Fix images and links occasionally appearing with escaped slashes
Closes: https://github.com/damus-io/damus/issues/1468
Signed-off-by: Daniel D‘Aquino <daniel@daquino.me >
Signed-off-by: William Casarin <jb55@jb55.com >
Rewarded-sats: 50000
2023-08-18 08:41:21 -07:00
William Casarin
7f313dcbd4
nostrscript: add comment about iOS virtual memory allocs
...
I'm really just doing this because I forgot a changelog entry
Changelog-Fixed: Fixed nostrscript not working on smaller phones
2023-08-18 08:41:21 -07:00
William Casarin
1dabd88355
nostrscript: reduce size of wasm page allocation
...
smaller phones don't like this
2023-08-11 07:47:15 -07:00
Suhail Saqan
4f33641244
change button scale effect
...
Reviewed-by: William Casarin <jb55@jb55.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-08-11 07:08:44 -07:00
William Casarin
006a6ef16f
Show possibly invalid zaps if we don't have the event in cache
...
Changelog-Fixed: Fix zaps sometimes not appearing
2023-08-10 10:32:57 -07:00
William Casarin
7467a9d5b1
Fix empty lines in profile and reposting-the-wrong-thing bugs
...
Changelog-Fixed: Fixed issue where reposts would sometimes repost the wrong thing
Changelog-Fixed: Fixed issues where sometimes there would be empty entries on your profile
2023-08-09 09:16:29 -07:00
William Casarin
9f01cab2be
simplify reduce_text_block
2023-08-08 17:09:45 -07:00
William Casarin
502917012c
v1.6 (11) changelog
2023-08-07 08:46:23 -07:00
William Casarin
916f7d789e
v1.6 (11)
2023-08-07 08:45:07 -07:00
William Casarin
21eda288c4
timeline: show renotes in Notes timelines
...
Changelog-Changed: Show renotes in Notes timeline
Fixes: https://github.com/damus-io/damus/issues/676
2023-08-07 08:24:02 -07:00
William Casarin
25e022d933
reply: ensure the person you're replying to is the first entry in the reply description
...
Suggested-by: Tanel
Changelog-Fixed: Ensure the person you're replying to is the first entry in the reply description
2023-08-06 15:37:32 -07:00
William Casarin
e642913944
notifications: don't cutoff text
...
Changelog-Fixed: don't cutoff text in notifications
2023-08-06 14:58:32 -07:00
cr0bar
967785392f
note: fix paragraphs not appearing on iOS17
...
In some edge cases, the inflated UiTextView didn't render properly
causing a black screen which needed the user to scroll. Dropped the
inflate size and now only set where selectedTextHeight is .zero, seems
more reliable.
Closes: https://github.com/damus-io/damus/pull/1427
Changelog-Fixed: Fix paragraphs not appearing on iOS17
2023-08-06 14:23:11 -07:00
William Casarin
9e6fbeefcd
url: smartparens hack
...
support urls like (https://jb55.com/something )
2023-08-06 14:16:43 -07:00
William Casarin
de58e52199
dms: move timestamp outside of bubble
2023-08-06 14:07:04 -07:00
William Casarin
53e9269da6
urls: fix wikipedia url detection with parenthesis
...
Fixes: f0df4aa218 ("Strip common punctuations from URLs")
Fixes: https://github.com/damus-io/damus/issues/1027
Closes: https://github.com/damus-io/damus/pull/1063
Changelog-Fixed: Fix wikipedia url detection with parenthesis
2023-08-06 13:53:28 -07:00
Joel Klabo
85930df8e3
tests: add url parens tests
2023-08-06 13:51:39 -07:00
William Casarin
cf3a9a576d
test: move existing url tests to UrlTests
2023-08-06 13:50:20 -07:00
William Casarin
e397fc069b
make: add tags target
2023-08-06 13:50:20 -07:00
William Casarin
2529797dfb
todo: add local todo helper
2023-08-06 13:50:20 -07:00
William Casarin
bd2193251f
build: fix some build issues with the last revert
...
Fixes: 1a2ac976a3 ("Fix old notifications always appearing on first start")
2023-08-06 11:30:28 -07:00
William Casarin
1a2ac976a3
Fix old notifications always appearing on first start
...
Revert "home: debounce last notified"
This is technically incorrect, as debouncing can prevent saving
important events.
The proper way to do this is to save it locally in memory, and then
debouncing the saving itself. Will do this soon.
Reverts: a9b4cfd424
Fixes: https://github.com/damus-io/damus/issues/1439
Changelog-Fixed: Fixed old notifications always appearing on first start
2023-08-06 09:22:28 -07:00
William Casarin
d4faacb99f
relays: strip trailing / from relay urls
...
Fixes: https://github.com/damus-io/damus/issues/1443
Changelog-Fixed: Fix issue with slashes on relay urls causing relay connection problems
2023-08-06 09:07:33 -07:00
William Casarin
a73271e3d4
debug: remove note size debug
...
ThreadSanitizer was complaining about a data race
2023-08-06 09:07:33 -07:00
William Casarin
624a7b4e88
notifications: fix rare crash with local notification
...
This shouldn't happen, but I found a log that crashed here, so we will
fix this anyways.
Changelog-Fixed: Fix rare crash triggered by local notifications
2023-08-06 08:33:51 -07:00
William Casarin
5b9803d234
script: add build-git-hash.txt build output
...
Otherwise we get warnings
2023-08-06 07:54:23 -07:00
William Casarin
3098d4b4fa
bar: fix crash when long pressing emoji selection
...
Changelog-Fixed: Fix crash when long-pressing reactions
2023-08-06 07:10:01 -07:00
William Casarin
0178478199
decoding: fix decoding of large events like nostr reports
...
I was trying to do an initial malloc that was somewhat efficient. Looks
like our ndb_builder needs a bit more space when allocating the
ndb_note.
Changelog-Fixed: Fixed nostr reporting decoding
2023-08-06 06:56:24 -07:00
William Casarin
d489bcc586
test: add test for failing nostr report event
2023-08-06 06:56:24 -07:00
William Casarin
453d540255
search: find_event_with_subid
...
I needed this to find a bug in event decoding
2023-08-06 06:56:24 -07:00
Suhail Saqan
5ded564bdc
settings: change settings order: Reactions -> Developer
...
Signed-off-by: William Casarin <jb55@jb55.com >
2023-08-05 18:48:44 -07:00
Suhail Saqan
3908192fe2
reactions: add close button to custom reactions
...
Signed-off-by: William Casarin <jb55@jb55.com >
Changelog-Added: Add close button to custom reactions
2023-08-05 18:48:35 -07:00
Suhail Saqan
92020e551b
reactions: add ability to change order of emojis
...
Signed-off-by: William Casarin <jb55@jb55.com >
Changelog-Added: Add ability to change order of custom reactions
2023-08-05 18:48:30 -07:00
Suhail Saqan
ccd52a09d8
reactions: remove some left padding from add and remove buttons
...
Signed-off-by: William Casarin <jb55@jb55.com >
2023-08-05 18:48:24 -07:00
Suhail Saqan
ced3c76996
reactions: only allow copy emoji when editing
...
Signed-off-by: William Casarin <jb55@jb55.com >
2023-08-05 18:48:16 -07:00
Suhail Saqan
29bba15230
qr: dismiss qrcode fullScreenCover on scan
...
Signed-off-by: William Casarin <jb55@jb55.com >
Changelog-Fixed: Dismiss qr screen on scan
2023-08-05 18:48:11 -07:00
Suhail Saqan
fb179ac1d4
qr: show QRCameraView regardless of same user
...
Signed-off-by: William Casarin <jb55@jb55.com >
Changelog-Fixed: Show QRCameraView regardless of same user
2023-08-05 18:48:11 -07:00
Suhail Saqan
7900865c02
bar: wiggle long press reactions
...
Signed-off-by: William Casarin <jb55@jb55.com >
Changelog-Fixed: Fix wiggle when long press reactions
2023-08-05 18:48:01 -07:00
Suhail Saqan
0350809e82
bar: fix reaction button breaking scrolling
...
Signed-off-by: William Casarin <jb55@jb55.com >
Changelog-Fixed: Fix reaction button breaking scrolling
2023-08-05 18:44:54 -07:00
Bryan Montz
cddb88b890
fix: crash when muting threads
...
Fixes a crash when the user mutes a thread. UserDefaults didn't know how
to serialize a NoteId for storage, so we'll convert it to the hex id
first.
Changelog-Fixed: Crash when muting threads
Signed-off-by: Bryan Montz <bryanmontz@me.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-08-04 09:35:35 -07:00
William Casarin
14ba33674b
setting: adjustable font size for jack the zapper
...
Changelog-Added: Adjustable font size
2023-08-03 18:38:20 -07:00
William Casarin
c0f4e3fe03
v1.6 (9)
2023-08-03 17:25:52 -07:00
William Casarin
dae2e8ef56
Revert "Fix for missing bottom half of a note"
...
This reverts commit 39dce64131 .
2023-08-03 17:23:53 -07:00
William Casarin
b2d2fbee0d
v1.6-8 changelog
2023-08-03 13:36:24 -07:00
William Casarin
cebd1f48ca
ndb: switch to nostrdb notes
...
This is a refactor of the codebase to use a more memory-efficient
representation of notes. It should also be much faster at decoding since
we're using a custom C json parser now.
Changelog-Changed: Improved memory usage and performance when processing events
2023-08-03 13:20:36 -07:00
William Casarin
55bbe8f855
disable nostrscript test for now
2023-08-03 13:15:32 -07:00
cr0bar
39dce64131
Fix for missing bottom half of a note
...
Strange fix, but by increasing the height of a UiTextView past the size
of any legitimate content, then re-sizes back to the correct size
displaying the full content.
Changelog-Fixed: Fixed disappearing text on iOS17
2023-08-03 12:34:18 -07:00
William Casarin
b556257edd
util: add structured logger
2023-08-03 12:17:56 -07:00
Daniel D‘Aquino
cdc4a7b7a4
Fix UTF support for hashtags
...
Changelog-Fixed: Fix UTF support for hashtags
Closes: https://github.com/damus-io/damus/issues/1411
Signed-off-by: Daniel D‘Aquino <daniel@daquino.me >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-08-03 12:17:32 -07:00
Daniel D‘Aquino
ef5a3030a6
Add unit tests surrounding creation of posts with non-latin hashtags, as well as the rendering of non-latin hashtag
...
Signed-off-by: Daniel D‘Aquino <daniel@daquino.me >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-08-03 12:17:32 -07:00
Daniel D‘Aquino
f0b8dcc5e9
Split view previews in NoteContentView to make both variants visible
...
Signed-off-by: Daniel D‘Aquino <daniel@daquino.me >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-08-03 12:17:32 -07:00
Daniel D‘Aquino
72b60573de
Fix compilation error on test target in UserSearchCacheTests
...
Changelog-Fixed: Fix compilation error on test target in UserSearchCacheTests
Signed-off-by: Daniel D‘Aquino <daniel@daquino.me >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-08-03 12:17:32 -07:00
William Casarin
6e6c1eb7b6
ndb: make AsciiCharacter a CustomStringConvertible
2023-08-01 21:53:19 -07:00
William Casarin
07dfa3b1fb
ndb: update nostrdb
...
This include various fixes for parsing and key decoding
2023-08-01 21:53:19 -07:00
William Casarin
88306d00a3
key: generate a FullKeypair when generating new keys
2023-08-01 21:53:19 -07:00
William Casarin
616de2eebc
state: improve damus state init
...
It's a bit cleaner now
2023-08-01 21:53:19 -07:00
William Casarin
709aab549b
nav: fix nav crashes and buggyness
...
just use the hashable for equality
Changelog-Fixed: Fix nav crashing and buggyness
2023-08-01 21:53:05 -07:00
William Casarin
15ab9f7135
scroll: allow any hashable target
2023-08-01 21:52:23 -07:00
William Casarin
d4aa8a5602
config: show git hash in version info
...
This will be useful for sanity checks and bisecting
2023-08-01 09:29:09 -07:00
William Casarin
a9b4cfd424
home: debounce last notified
...
Calling UserDefaults fast in a loop is not good
2023-07-31 05:38:19 -07:00
William Casarin
2b99f94d13
profiledb: disable database lookups for now
...
This is causing extremely bad lag in the UI
2023-07-31 05:38:19 -07:00
William Casarin
66e204eb91
notifications: don't do expensive id calculation
2023-07-31 05:38:19 -07:00
William Casarin
7040235605
refactor: add Pubkey, Privkey, NoteId string aliases
...
This is a non-behavioral change in preparation for the actual switchover
from Strings to Ids. The purpose of this kit is to reduce the size of
the switchover commit which is going to be very large.
2023-07-31 05:38:19 -07:00
William Casarin
f9d21ef901
test: rename test_event to test_note
2023-07-31 05:38:19 -07:00
William Casarin
a08d0a5a19
ndb: more id transition helpers
2023-07-31 04:08:07 -07:00
William Casarin
ff20cc4767
tests: enable code coverage
2023-07-31 03:25:50 -07:00
William Casarin
aacb336002
Update Translations
2023-07-30 11:57:18 -07:00
William Casarin
b40c595a7c
notify: switch over to new typesafe notifications
2023-07-30 11:02:44 -07:00
William Casarin
80063af19a
notify: add typesafe notifications
2023-07-30 11:02:44 -07:00
William Casarin
df3b94a1fc
notify: add typesafe notify class
2023-07-30 11:02:44 -07:00
William Casarin
06a66a3709
add some type aliases to make the ndb move more incremental
2023-07-30 10:52:02 -07:00
William Casarin
1463ce5e3a
profile: don't notify on notice
...
this is just a waste of cpu at this point and could cause main thread
blocking issues
2023-07-30 10:52:02 -07:00
Joel Klabo
480921db20
Suggested Users to Follow
...
ui: Add Suggested Users Views and Helpers
ui: Add Logic to Launch Suggested User Screen
Changelog-Added: Suggested Users to Follow
2023-07-29 10:25:24 -07:00
doffing.brett
f0de8721c7
Center and Pad buttons in EULA
2023-07-29 10:11:38 -07:00
Suhail Saqan
d11cd76e6a
Add multiple reaction support
...
Changelog-Added: Add support for multiple reactions
Closes: https://github.com/damus-io/damus/issues/1335
2023-07-29 10:03:55 -07:00
Daniel D'Aquino' via patches
815f4d4a96
Allow relay logs to be opened in dev mode even if relay is disconnected
...
Changelog-Fixed: Allow relay logs to be opened in dev mode even if relay
Closes: https://github.com/damus-io/damus/issues/1368
Signed-off-by: Daniel D'Aquino <daniel@daquino.me >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-29 09:44:36 -07:00
Bryan Montz
4fecf72963
fix: endless connection attempt loop after user removes relay
...
This patch fixes an issue where, after the user removes a misbehaving
relay, the RelayConnection will keep trying to reconnect endlessly. You
can reproduce the issue prior to this change by adding the relay
wss://brb.io. It will fail to connect over and over. Then remove the
relay in the UI. In the console, you will see that it keeps trying to
connect, and the corresponding RelayConnection never gets deallocated.
After the change, it stops connecting and deallocates the
RelayConnection.
Changelog-Fixed: endless connection attempt loop after user removes relay
Signed-off-by: Bryan Montz <bryanmontz@me.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-29 09:18:03 -07:00
William Casarin
593d0e2abe
ndb: sync up a few remaining NdbNote tag differences
2023-07-25 16:22:25 -07:00
William Casarin
2f8aa29e92
ndb: make NostrEvents immutable
...
Since we can't mutate NdbNotes, let's update the existing codebase to
generate and sign ids on NostrEvent constructions. This will allow us to
match NdbNote's constructor
2023-07-25 15:34:05 -07:00
William Casarin
e3c04465fc
ndb: move to uint32 for kind and created_at
2023-07-25 15:24:26 -07:00
William Casarin
54d40f7ffd
ndb: move hexchar into header
...
since it's used in a few places
2023-07-25 15:23:36 -07:00
William Casarin
2053033b25
ndb: make note equatble
...
We need this for the switchover
2023-07-24 13:09:27 -07:00
William Casarin
45801f3e6c
ndb: rename NostrEvent to NostrEventOld
...
This facilitates the switch to NdbNote by allowing us to switch back and
forth to fix things.
2023-07-24 13:08:55 -07:00
William Casarin
2d44f2744b
ndb: switch to computed property for tags
...
this will allows us to change less code on the switchover
2023-07-24 13:08:18 -07:00
William Casarin
04e408bfea
ndb: implement a few more event things
...
We're basically done. Time to try the switch-over
2023-07-24 12:41:12 -07:00
William Casarin
b3c87bdc07
test: remove unused var
2023-07-24 12:40:04 -07:00
William Casarin
b5dd90b36a
notes: generalize event_is_reply a bit
...
so that it works with NdbNote as well
2023-07-24 12:39:55 -07:00
William Casarin
6fa9149939
ndb: avoid double constructor on References
2023-07-24 11:05:18 -07:00
William Casarin
1e9e4a7f3a
ndb: implement eventref building from ndb notes
2023-07-24 10:55:34 -07:00
William Casarin
c8e236b6d5
ndb/test: add more test coverage on char iter
2023-07-23 12:21:36 -07:00
William Casarin
e8d0f1db8d
test: fix some ndb test warnings
2023-07-23 12:12:42 -07:00
William Casarin
99b5dc94cb
ndb: copy over perf improvements
2023-07-23 12:11:08 -07:00
William Casarin
e34351ca37
ndb: fix iterators, pack id tags, more tests
2023-07-23 11:55:36 -07:00
William Casarin
1a33d639ed
test: remove some unused perf tests
2023-07-23 11:54:58 -07:00
William Casarin
5c1043b4e5
ndb: add cchar constructors to AsciiCharacter
...
This will be used for the cchar iterator
2023-07-23 11:54:07 -07:00
William Casarin
23b5763a6b
git: ignore perf baselines
...
this is system-dependent
2023-07-23 11:50:02 -07:00
William Casarin
dd65209a20
Revert "ndb: remove TagIterators and just use sequences"
...
This reverts commit f0d07c3663 .
2023-07-23 10:56:12 -07:00
William Casarin
f0d07c3663
ndb: remove TagIterators and just use sequences
...
Still learning...
2023-07-22 21:12:53 -07:00
William Casarin
b3119fa41e
test: small test fix
2023-07-22 17:23:11 -07:00
William Casarin
7ec8da6c73
ndb: start implementing existing NostrEvent functionality
...
We eventually want to switch over to NdbNote instead of NostrEvent. To
facilitate this, the plan is to eventually make NostrEvent an alias of
NdbNote. For this to work, let's make sure the NostrEvent extensions are
implemented on NdbNote.
We will likely switch away from string properties as well, but for now
we will try to emulate as much as possible to make sure everything is
working first.
2023-07-22 17:19:47 -07:00
William Casarin
9e659c49b5
ndb/test: add a few more tests
2023-07-22 17:19:47 -07:00
William Casarin
c72666b352
ndb: add subscript and count for TagsSequence
...
These are helpful
2023-07-22 17:19:47 -07:00
William Casarin
1854e10486
mentions: add ndb mention parser
2023-07-22 17:19:47 -07:00
William Casarin
58e2fb40ef
iter: make safer by using NdbNote instead of unsafe pointers
...
If we have an owned note, we could lose track of the lifetime and then
crash. Let's make sure we always have an NdbNote instead
2023-07-22 17:19:47 -07:00
William Casarin
af7ea7024f
misc: don't immediately hex encode event commitment
...
keep it separate for now, since we're moving to more low level. We
probably won't even use this, but this is cleaner logicwise anyway.
2023-07-22 17:19:47 -07:00
William Casarin
0263c11a94
ndb: add content and owned_size
2023-07-22 17:19:47 -07:00
William Casarin
6d43754e71
ndb: add pubkey to NdbNote
2023-07-22 17:19:47 -07:00
William Casarin
4da23390f8
ndb: update lib
2023-07-22 17:19:47 -07:00
William Casarin
c74993366b
move copyndb to the right folder
2023-07-22 17:19:47 -07:00
William Casarin
ad0e1f28b7
test: fix build and tests
2023-07-21 15:26:03 -07:00
William Casarin
61051ee853
nostrdb: add initial swift integration
2023-07-21 15:02:01 -07:00
William Casarin
dc7826c4e5
c: add nostrdb c lib
2023-07-21 15:02:01 -07:00
William Casarin
4eee715bcd
c: add jsmn json parser
...
This is used by the nostrdb lib. Let's add it here.
This doesn't unescape things, so we'll still need to do that manually.
2023-07-21 14:56:24 -07:00
William Casarin
08bea16be0
c: add new cursor util
...
this is used by nostrdb as well. so add it here ahead of time.
2023-07-21 14:55:54 -07:00
William Casarin
8f04b12a90
c: add copy nostrdb devtool
2023-07-21 14:55:54 -07:00
William Casarin
9cfed9f3aa
c: update protoverse_cursor to jb55_cursor
...
Will be using this in the new db implementation
2023-07-21 14:39:21 -07:00
William Casarin
123ca3b802
test: add my contact list for as json parsing test data
2023-07-21 14:39:21 -07:00
William Casarin
5e7b1f4ff3
event: separate logic from data using extensions
...
I'm not a huge fan of this pattern but it's getting messy in here
2023-07-21 14:39:11 -07:00
tyiu
12594e35c1
Update translations
...
47 Translate Localizable.stringsdict in de
6 Translate Localizable.strings in de
3 Translate Localizable.strings in zh_CN
2 Translate Localizable.strings in sv_SE
2 Translate Localizable.strings in es_419
1 Translate Localizable.stringsdict in zh_TW
1 Translate Localizable.stringsdict in zh_HK
1 Translate Localizable.stringsdict in zh_CN
1 Translate Localizable.stringsdict in sv_SE
1 Translate Localizable.stringsdict in pl_PL
1 Translate Localizable.stringsdict in es_419
1 Translate Localizable.strings in zh_TW
1 Translate Localizable.strings in zh_HK
1 Translate Localizable.strings in pl_PL
1 Translate Localizable.strings in nl
Closes: https://github.com/damus-io/damus/pull/1373
2023-07-19 10:11:42 -07:00
tyiu
ab92f7b561
Update localization issues and export strings for translation
2023-07-19 10:08:30 -07:00
William Casarin
11b9062865
test: fix some warnings
2023-07-19 10:04:25 -07:00
William Casarin
5c5b55bf67
v1.6 (7) changelog
2023-07-17 14:39:27 -07:00
William Casarin
dd6c082a8e
v1.6 (7)
2023-07-17 14:35:54 -07:00
William Casarin
2a4ee6c48c
zaps: don't spam lnurls when validate zaps
...
lnurls.lookup_or_fetch not fetched lnurl1dp68gurn8ghj7um9dej8xct5wvhxcmmv9uh8wetvdskkkmn0wahz7mrww4excup0df3r2dg3mj444
fetching static payreq lnurl1dp68gurn8ghj7um9dej8xct5wvhxcmmv9uh8wetvdskkkmn0wahz7mrww4excup0df3r2dg3mj444
lnurls.lookup_or_fetch already fetching lnurl1dp68gurn8ghj7um9dej8xct5wvhxcmmv9uh8wetvdskkkmn0wahz7mrww4excup0df3r2dg3mj444
lnurls.lookup_or_fetch already fetching lnurl1dp68gurn8ghj7um9dej8xct5wvhxcmmv9uh8wetvdskkkmn0wahz7mrww4excup0df3r2dg3mj444
lnurls.lookup_or_fetch already fetching lnurl1dp68gurn8ghj7um9dej8xct5wvhxcmmv9uh8wetvdskkkmn0wahz7mrww4excup0df3r2dg3mj444
lnurls.lookup_or_fetch already fetching lnurl1dp68gurn8ghj7um9dej8xct5wvhxcmmv9uh8wetvdskkkmn0wahz7mrww4excup0df3r2dg3mj444
Changelog-Fixed: Don't spam lnurls when validating zaps
2023-07-17 14:12:41 -07:00
William Casarin
fa520d48d3
zap: remove unnecessary main thread dispatches when zapping
2023-07-17 14:11:23 -07:00
William Casarin
160b293359
performance: don't spam nip05 validation on startup
...
Since we don't show these on events anymore, we don't need to spam nip05
validation. We can just check when we go to the profile page
Changelog-Fixed: Eliminate nostr address validation bandwidth on startup
2023-07-17 13:25:56 -07:00
William Casarin
7d17b9b476
nip05: hide nip05 username if it matches the username
2023-07-17 13:25:56 -07:00
William Casarin
d04f1c6867
login: allow user to login to deleted profile
...
If they every change their mind.
Changelog-Fixed: Allow user to login to deleted profile
2023-07-17 13:25:56 -07:00
William Casarin
5c87dd5bbb
nip05: remove clickable option
...
they're always clickable now
2023-07-17 13:25:56 -07:00
William Casarin
12febf9671
view: extract ProfileEditButton to its own file
...
profile view file is getting cray cray
2023-07-17 13:25:56 -07:00
William Casarin
4033ad66ba
test: fix crash in ci
2023-07-17 13:25:56 -07:00
William Casarin
2c0296cce3
project: bump deployment target
...
not sure how this is different than the previous setting that was
updated.
Cc: Bryan Montz <bryanmontz@me.com >
2023-07-17 13:25:56 -07:00
William Casarin
080aaf2d1b
nip05: show username and support _ usernames
...
Changelog-Added: Show nostr address username and support abbreviated _ usernames
2023-07-17 11:01:57 -07:00
William Casarin
0e55b08b6c
Revert removing nip05 badges on profiles
...
Changelog-Added: Re-add nip05 badges to profiles
This partially reverts commit 7ae7584135 .
2023-07-17 10:52:20 -07:00
William Casarin
ff70cb7ebf
posting: don't prepad user tag if its a newline
...
This fixes one more edgecase with the tag prepend logic.
2023-07-17 10:45:05 -07:00
William Casarin
fe82134a75
posting: switch to new tested composition logic
...
This switches to the new post composition logic in the post view. It
adds a space at the begging of a mention if it is needed.
We still need to make the state in these view more pure so we can test
more of the posting logic like cursor positions after posting, etc.
Changelog-Added: Add space when tagging users in posts if needed
Changelog-Fixed: Fix issue where typing cc@bob would produce brokenb ccnostr:bob mention
2023-07-17 10:25:09 -07:00
William Casarin
60a0c21272
test: add post composition tests
...
This adds post composition tests so that we can avoid composition bugs.
This still does not capture all of the dynamics of post composition,
because it ignores much of the mutable cursor position and related state
when editing posts.
We will need to make post editing more pure and less mutable in the
future to get test coverage on those.
2023-07-17 10:25:09 -07:00
William Casarin
8242ca27d2
profile: make constructor args optional
...
This makes it easier to create one-off profiles for testing. eg:
Profile(name: "jb55")
2023-07-17 10:25:09 -07:00
William Casarin
c7baa153af
posting: add some functions for appending mention tags
...
These are easy-to-test functions for appending user tags to attributed
strings. We will use these in the next couple of commits to replace the
existing buggy functionality.
2023-07-17 10:25:09 -07:00
William Casarin
ff654c4e11
test: add text attribute testing function
...
This will be used for testing attributed strings
2023-07-17 10:25:09 -07:00
William Casarin
deaf5f042a
search: refactor appendUserTag to make logic more clear
...
ocd mostly
2023-07-17 10:25:09 -07:00
William Casarin
4f56ff3dfb
longform: add padding under words count
...
Changelog-Added: Added padding under word count on longform account
2023-07-17 10:25:09 -07:00
William Casarin
fd59407171
test: fix old markdown tests
2023-07-17 10:25:09 -07:00
William Casarin
9b759247ee
v1.6 (6) changelog
2023-07-16 15:34:40 -07:00
William Casarin
cd7998b69d
v1.6 (6)
2023-07-16 15:33:00 -07:00
William Casarin
bd4c29604f
Fix broken markdown renderer
...
This switches away from the old markdown renderer to the new one at
https://github.com/damus-io/swift-markdown-ui
Changelog-Fixed: Fix broken markdown renderer
2023-07-16 15:27:24 -07:00
William Casarin
bf1175f22c
markdown: add some helpers for counting markdown words
...
Will use this in the new word counter
2023-07-16 15:27:06 -07:00
William Casarin
064888f78d
markdown: use a real-world longform preview
2023-07-16 15:26:31 -07:00
William Casarin
fc640b85ed
add swift-markdown-ui
...
We will be using this lib which is much better than the builtin
framework for markdown rendering. We use a modified version that removes
html tag rendering which looks horrible.
2023-07-16 15:25:09 -07:00
William Casarin
d5766253cf
build: fix unused variable warning
2023-07-16 15:24:06 -07:00
William Casarin
571ed39d52
Fixed issue where hashtags were leaking in DMs
...
Now we never add any tags to DMs, we only add the p tag of the user
you're talking to.
Changelog-Fixed: Fixed issue where hashtags were leaking in DMs
2023-07-16 15:24:06 -07:00
cr0bar
16d81ed40f
Hide nsec when logging in
...
Fix for Hide nsec when logging in & add hide/show toggle
Closes: https://github.com/damus-io/damus/issues/1206
Changelog-Changed: Hide nsec when logging in
2023-07-16 13:05:18 -07:00
William Casarin
1135c19fea
test: add setting property tests
...
Some initial UserSettingsStore property tests
2023-07-16 13:05:18 -07:00
William Casarin
77331644cb
Fix issue with emojis next to hashtags and urls
...
Treat utf8 bytes next to hashtags and urls as boundary conditions
Changelog-Fixed: Fix issue with emojis next to hashtags and urls
2023-07-16 11:46:23 -07:00
William Casarin
8d14fdffb5
content: add utf8 char at url left boundary test
2023-07-16 11:46:23 -07:00
William Casarin
0c95071de7
project: rename parse_mentions to parse_note_content
...
This is more accurate
2023-07-16 11:46:23 -07:00
William Casarin
da78a217a3
docs: clarify the section on using -v2,v3, etc
...
Some patches are still not getting sent with version information. Let's
clarify that in the contribution docs.
Cc: dev@damus.io
2023-07-16 10:05:57 -07:00
William Casarin
f53b824122
docs: patch changelogs when submitting patches
...
This adds a section on creating patch changelogs when submitting
patches. It helps reviewers know what changed between many different
versions of a patch
2023-07-16 09:44:27 -07:00
Bryan Montz
45ab394b09
fixed: relay detail view is not immediately available after adding new relay
...
Changelog-Fixed: relay detail view is not immediately available after adding new relay
Closes: https://github.com/damus-io/damus/issues/1369
Signed-off-by: Bryan Montz <bryanmontz@me.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-16 07:56:18 -07:00
Bryan Montz
47e7505573
fix typos
...
Signed-off-by: Bryan Montz <bryanmontz@me.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-16 07:37:55 -07:00
Bryan Montz
0f1390f412
Swift cleanup: remove duplicate or unnecessary initializers using default values
...
Signed-off-by: Bryan Montz <bryanmontz@me.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-16 07:37:55 -07:00
Bryan Montz
6bf5293701
Swift cleanup: don't capture case values only to ignore them in switch statements
...
Signed-off-by: Bryan Montz <bryanmontz@me.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-16 07:37:55 -07:00
Bryan Montz
3d6909bf62
Swift cleanup: simplify "Task.init {}" to "Task {}"
...
Signed-off-by: Bryan Montz <bryanmontz@me.com >
Reviewed-by: William Casarin <jb55@jb55.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-16 07:37:55 -07:00
Bryan Montz
ecd8b64b8b
Swift cleanup: prefer case list over fallthrough in switch statements
...
Signed-off-by: Bryan Montz <bryanmontz@me.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-16 07:37:55 -07:00
Bryan Montz
0c627ae0a0
Swift cleanup: "init (" -> "init("
...
Signed-off-by: Bryan Montz <bryanmontz@me.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-16 07:37:55 -07:00
William Casarin
16c86c1d1c
update bad commit mailmap
2023-07-14 22:25:19 -07:00
Daniel D'Aquino' via patches
29140d956b
Add feedback message when user adds a relay already in the list
...
Changelog-Added: Added feedback when user adds a relay that is already on the list
Closes: https://github.com/damus-io/damus/issues/1053
Signed-off-by: Daniel D'Aquino <daniel@daquino.me >
Reviewed-by: William Casarin <jb55@jb55.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-14 22:11:34 -07:00
William Casarin
7ae7584135
ui: remove nip05 badge on events
...
Changelog-Changed: Remove nip05 on events
2023-07-14 17:31:28 -07:00
William Casarin
139be9eef2
Fix nostr: mention prefix bugs
...
The zero-width space was causing parsing issues. Not sure why we need
this so I just removed it.
Changelog-Fixed: Fix nostr:nostr:... bugs
2023-07-14 17:28:24 -07:00
William Casarin
72a060c7b3
nip05: rename nip05 to Nostr Address in search
...
Forgot this one
2023-07-14 17:05:01 -07:00
William Casarin
9db81fd6b8
views: refactor post_changed in PostView
...
Use some helper functions instead of the full switch
2023-07-14 15:54:17 -07:00
William Casarin
f08efd7e30
nip05: rename nip05 verification to nostr address
...
nip05 identifiers and nip05 verification is too confusing, and also
wrong. Let's use the "nostr address" terminology.
Suggested-by: Derek Ross
Suggested-by: Semisol <hi@semisol.dev >
Changelog-Changed: Rename NIP05 to "nostr address"
2023-07-14 13:26:10 -07:00
William Casarin
fb2a69acd8
project: fix test fixtures
2023-07-14 13:07:52 -07:00
tyiu
8a9e3ea76b
Fix localization issues and export strings for translation
...
Changelog-Fixed: Fix localization issues and export strings for translation
Signed-off-by: Terry Yiu <git@tyiu.xyz >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-14 09:34:29 -07:00
William Casarin
4830a6f3b7
Run actions on pushes to the ci branch
2023-07-14 09:34:29 -07:00
William Casarin
9879c78e41
build 5 because I broked something
2023-07-13 15:43:21 -07:00
William Casarin
05e73a3711
actually subscribe to likes. oops
2023-07-13 11:43:52 -07:00
William Casarin
731fdb108b
build: fix a few warnings and errors
2023-07-13 11:17:00 -07:00
William Casarin
2f3737c2b5
v1.6-4 changelog
2023-07-13 11:14:29 -07:00
William Casarin
e36747a81a
v1.6 (4)
2023-07-13 11:13:50 -07:00
William Casarin
505ce0bd39
Add the ability to follow hashtags
...
Changelog-Added: Add the ability to follow hashtags
2023-07-13 11:10:53 -07:00
William Casarin
31fa63debf
home: hide users and hashtags from home timeline when you unfollow
...
Add the ability to resubscribe to home filters so that it will be
updated when you follow and unfollow people
Changelog-Fixed: Hide users and hashtags from home timeline when you unfollow
2023-07-13 11:08:09 -07:00
William Casarin
122655bea3
home: separate home filters
...
we will want to resubscribe to these, so pull them out
2023-07-13 11:08:09 -07:00
William Casarin
9a714943fd
contacts: get followed hashtags function
...
todo: cache these
2023-07-13 11:08:09 -07:00
William Casarin
17df2972d9
ui: add follow hashtag ui on search view
2023-07-13 11:08:04 -07:00
William Casarin
bebaffd247
contacts: unify following logic
...
We are about to add hashtag following, so let's prepare handle_follow
for this. Generalize pubkey following to ReferenceId follows in the
handle_{follow,unfollow} functions.
We also split out the notification part into its own function.
2023-07-13 09:32:42 -07:00
William Casarin
0fae54a98d
components: make GradientButtonStyle padding configurable
...
There is too much padding on the follow hashtag button so we need to fix
that
2023-07-13 09:04:55 -07:00
William Casarin
90818c12e8
components: create PinkGradientView and use PinkGradient directly
...
Still need to do this for the other gradients as well but this is fine
for now.
2023-07-13 09:04:55 -07:00
William Casarin
1136808afa
contacts: generalize following to allow any reference
...
I noticed we are not using the PostBox when following new users. Not
good! This is probably why following users sometimes does not work.
Changelog-Fixed: Fixed a bug where following a user might not work due to poor connectivity
2023-07-13 09:04:55 -07:00
William Casarin
b7d139ffb3
refid: add .t helper
...
This is used for quickly creating hashtag refs
2023-07-13 09:04:55 -07:00
William Casarin
7fc270725f
test: add newline mention test
...
This is currently passing but it shouldn't be. This is because we are
not testing the build_post function directly. We will do this soon.
2023-07-13 07:32:27 -07:00
William Casarin
7b73a54de5
test: switch to test data file
...
We only added the file before, let's actually use it now
2023-07-13 07:32:27 -07:00
Bryan Montz
fdaf785869
fixed: icon color for developer mode setting is incorrect in low-light mode
...
Changelog-Fixed: icon color for developer mode setting is incorrect in low-light mode
Signed-off-by: Bryan Montz <bryanmontz@me.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-13 07:24:44 -07:00
William Casarin
c0f9b0a8c0
views: allow embeddable views at top of timeline
...
This allows you to put stuff at the top of a timeline inside the scroll
view. We could also remove the scrollview from the timeline
eventually... but this works for now.
2023-07-13 06:56:23 -07:00
William Casarin
7123b225a1
search: make model an ObjservedObject
...
This should not be a state object because the data is passed in
elsewhere
2023-07-13 06:56:23 -07:00
William Casarin
b6f25a85f8
Fix nip05 badge icon
2023-07-13 06:56:23 -07:00
William Casarin
7046fe0d4f
ui: add DamusBackground helper
...
We will be using this in more places
2023-07-13 06:56:23 -07:00
William Casarin
201e9a427f
post: extract build_post from post view
...
I need to test this function because there is a bug with nostr: mentions
2023-07-13 06:56:23 -07:00
William Casarin
6481f96488
add bech32_pubkey_decode
...
I need this for a test
2023-07-13 06:56:23 -07:00
William Casarin
3845d32074
test: add test data file
...
We can organize test data in here
2023-07-13 06:56:23 -07:00
William Casarin
c1c33518ea
don't follow jb55 by default
...
This was funny initially but it confuses people.
Changelog-Removed: Remove following Damus Will by default
2023-07-12 14:42:23 -07:00
William Casarin
f2cf30a728
Scroll to top for longform events only
...
Fixes: ad6a1962 ("Scroll to top of event instead of bottom")
2023-07-12 08:23:53 -07:00
William Casarin
69922b1d77
Remove LoadMoreButton
...
Was an old unused thing
2023-07-12 08:21:44 -07:00
William Casarin
7343fcd399
Allow longform content to be long
...
Changelog-Changed: Remove note size restriction for longform events
2023-07-12 05:38:48 -07:00
ericholguin
5571052cfd
Update nav to use adaptable color for dark and light modes
...
Changelog-Fixed: Fixed nav bar color on login, eula, and account creation
Closes: https://github.com/damus-io/damus/pull/1361
2023-07-12 05:38:10 -07:00
William Casarin
de63e96664
v1.6-3 changelog
...
A few longform fixes
2023-07-11 12:59:09 -07:00
William Casarin
7f9371d85f
v1.6 (3)
2023-07-11 12:58:15 -07:00
William Casarin
de4e8e5748
Only show longform preview in notifications
...
Changelog-Fixed: Show longform previews in notifications instead of the entire post
2023-07-11 12:56:30 -07:00
William Casarin
ad6a1962bb
Scroll to top of event instead of bottom
...
This is pretty important for longform events
Changelog-Changed: Start at top when reading longform events
2023-07-11 12:55:54 -07:00
William Casarin
828e417726
Allow reposting and quote reposting multiple times
...
Changelog-Changed: Allow reposting and quote reposting multiple times
2023-07-11 12:28:38 -07:00
William Casarin
d2374aa6ec
I broked dms. i fixed.
2023-07-11 12:28:38 -07:00
William Casarin
495859e07f
Fix various padding issues related to longform posts
...
1. Make a proper threaded EventShell variant
2. Fix padding everywhere
Changelog-Fixed: Fix padding on longform events
2023-07-11 12:17:59 -07:00
William Casarin
d96ea593a5
search: allow searching longform articles by hashtag
2023-07-11 12:17:22 -07:00
William Casarin
7514a741c0
docs: make note to replace old bech32 parser
2023-07-11 12:17:09 -07:00
William Casarin
dc7b0004bc
Hide action bar in longform quote reposts
...
Changelog-Fixed: Fix action bar appearing on quoted longform previews
2023-07-11 10:26:29 -07:00
William Casarin
8e33d5f6b9
v1.6-2 changelog
2023-07-11 09:22:39 -07:00
William Casarin
db2ec0a00a
Fix npub mention bugs, fix slowness when parsing large posts
...
Switch the post parser to use the same code as the content parser. This
was causing many issues, including performance issues.
Changelog-Fixed: Fix lag when creating large posts
Changelog-Fixed: Fix npub mentions failing to parse in some cases
Changelog-Added: Add r tag when mentioning a url
Changelog-Removed: Remove old @ and & hex key mentions
2023-07-11 09:15:13 -07:00
cr0bar
dc21b6139c
Add support for multilingual hashtags
...
Changelog-Added: Add support for multilingual hashtags
Reviewed-by: William Casarin <jb55@jb55.com >
Closes: https://github.com/damus-io/damus/issues/949
2023-07-11 07:22:44 -07:00
William Casarin
031c7823ae
refactor: move hashtag tests to their own file
2023-07-11 07:21:16 -07:00
cr0bar
ac2b5b26bb
Added non-latin test and amended emoji test to include emoji in hashtag
2023-07-11 06:39:12 -07:00
cr0bar
c1220f50af
Handle percent encoding of colon for some hashtags
2023-07-11 06:39:12 -07:00
cr0bar
2353f97114
Change to is_hashtag_chat to support non-latin characters
2023-07-11 06:39:12 -07:00
cr0bar
e83e110adb
Fix to is_boundary to support non-latin characters
2023-07-11 06:39:12 -07:00
William Casarin
aae97c5cb7
git: add .mailmap file
...
This ensures that author emails are correct when using various git tools
2023-07-11 06:39:05 -07:00
William Casarin
45d9121ed7
fix project issues
2023-07-10 20:56:52 -07:00
tyiu
4c774f2dda
Fix PostView initial string to skip mentioning self when on own profile
...
Changelog-Fixed: Fix PostView initial string to skip mentioning self when on own profile
Signed-off-by: Terry Yiu <git@tyiu.xyz >
Reviewed-by: William Casarin <jb55@jb55.com >
2023-07-10 20:16:18 -07:00
tyiu
b8ec3493dc
Fix freezing bug when tapping Developer settings menu
...
Changelog-Fixed: Fix freezing bug when tapping Developer settings menu
Signed-off-by: Terry Yiu <git@tyiu.xyz >
Reviewed-by: William Casarin <jb55@jb55.com >
2023-07-10 20:16:18 -07:00
William Casarin
e299389866
Add initial longform note support
...
Changelog-Added: Add initial longform note support
2023-07-10 18:29:18 -07:00
William Casarin
374610a21a
artifacts: allow unseparated note artifacts
...
This is needed for longform events. Right now we treat unseparated note
artifacts as a list of blocks, but we will likely need to render these
blocks into lists of attributed texts with image blocks inbetween.
2023-07-10 18:24:43 -07:00
William Casarin
4d995fd04c
Longform Notes
2023-07-10 17:39:13 -07:00
William Casarin
518886912c
refactor: carve out TextEvent body into EventShell
...
We'll need this for other event types
2023-07-10 17:39:13 -07:00
William Casarin
ab5eea330a
options: add no_mentions to event view options
...
We don't need mentions in longform previews so we'll need this
2023-07-10 17:39:13 -07:00
William Casarin
41de715067
query: add longform kind, add to home filter
2023-07-10 17:39:13 -07:00
William Casarin
6ca9bda01e
notes: count words in notes during artifact parsing
2023-07-10 17:39:13 -07:00
William Casarin
fe077fa5c2
reposts: don't always show text events in reposts
...
This will allow longform reposts to work properly
Changelog-Fixed: Don't always show text events in reposts
2023-07-10 17:39:13 -07:00
William Casarin
cb2380e218
docs: add git-contacts example
...
git-contacts is a great way to cc people who have touched the same hunk
of code before.
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-10 17:38:54 -07:00
Joel Klabo
196cfdec4b
Fix Image Orientation
2023-07-10 17:27:51 -07:00
Joel Klabo
bfb47c0f85
Update Control Style to Stand Out More
2023-07-10 17:27:51 -07:00
Joel Klabo
9e7e128d9a
Refactoring Edit Picture Views
2023-07-10 17:27:51 -07:00
Joel Klabo
bf95a8b328
Banner Image Upload
...
Changelog-Added: Enable banner image editing
2023-07-10 17:27:42 -07:00
William Casarin
e316d5d635
docs: move security.md to docs subdir
2023-07-10 16:37:45 -07:00
William Casarin
37a5abc9e3
gitignore: add tags
2023-07-10 16:35:43 -07:00
William Casarin
cf83ac1fe8
docs: add patch submission guidelines
2023-07-10 16:22:09 -07:00
cr0bar
7a1269bd68
Fix for test issue due to recently implemented RelayPool change
2023-07-10 13:49:07 -07:00
William Casarin
acb4e6d17e
wasm: fix intptr warning
2023-07-10 11:14:03 -07:00
William Casarin
e957c3b703
wasm: fix clz64 warning
2023-07-10 11:14:03 -07:00
William Casarin
82fc4ff15e
wasm: comment out some unnused code for now
...
fixes some warnings
2023-07-10 11:14:03 -07:00
William Casarin
15d633a42f
project: update to recommend settings
2023-07-10 11:08:20 -07:00
William Casarin
7158f07bb1
Translate all the things
2023-07-10 08:20:28 -07:00
Bryan Montz
07abc5c04b
Fix issue where first row is always selected on Form views
...
Changlog-Fixed: Fix issue where first row is always selected on Form views
Signed-off-by: Bryan Montz <bryanmontz@me.com >
2023-07-10 07:54:47 -07:00
transifex-integration[bot]
79fb352d96
Translate Localizable.strings in el_GR
...
100% translated source file: 'Localizable.strings'
on 'el_GR'.
2023-07-10 08:46:21 +00:00
transifex-integration[bot]
94ef9bb42a
Translate Localizable.strings in el_GR
...
100% translated source file: 'Localizable.strings'
on 'el_GR'.
2023-07-10 08:46:09 +00:00
transifex-integration[bot]
78a64165e1
Translate Localizable.stringsdict in el_GR
...
100% translated source file: 'Localizable.stringsdict'
on 'el_GR'.
2023-07-10 08:43:55 +00:00
transifex-integration[bot]
ad216b1f11
Translate Localizable.strings in nl
...
100% translated source file: 'Localizable.strings'
on 'nl'.
2023-07-10 08:35:54 +00:00
transifex-integration[bot]
4abd227cf7
Translate Localizable.stringsdict in nl
...
100% translated source file: 'Localizable.stringsdict'
on 'nl'.
2023-07-10 08:35:46 +00:00
transifex-integration[bot]
800ce44f5e
Translate Localizable.strings in ja
...
100% translated source file: 'Localizable.strings'
on 'ja'.
2023-07-10 08:12:11 +00:00
transifex-integration[bot]
0e9e44d8f2
Translate Localizable.stringsdict in ja
...
100% translated source file: 'Localizable.stringsdict'
on 'ja'.
2023-07-10 07:51:47 +00:00
transifex-integration[bot]
3eba4b0af9
Translate Localizable.strings in ja
...
100% translated source file: 'Localizable.strings'
on 'ja'.
2023-07-10 07:51:06 +00:00
tyiu
140c3505ba
Update translations
2023-07-09 15:36:35 -04:00
tyiu
fcd7d2beab
Fix localization issues and export strings for translation
2023-07-09 15:33:15 -04:00
William Casarin
83ef50586a
zaps/refactor: use guard instead of if block
...
not a fan of unncessary nesting
2023-07-09 07:44:33 -07:00
William Casarin
87992f4bb9
Add RelayLog in developer mode
...
Changelog-Added: Add relay log in developer mode
2023-07-09 07:41:45 -07:00
Bryan Montz
faaa3e3bd9
only show the relay log in developer mode
...
Signed-off-by: Bryan Montz <bryanmontz@me.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-09 07:40:39 -07:00
Bryan Montz
2d9f7128ee
fix crash when adding line to log from background thread
...
Signed-off-by: Bryan Montz <bryanmontz@me.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-09 07:40:39 -07:00
Bryan Montz
51d71f11c1
replace RelayMetadatas with RelayModelCache in DamusState
...
Signed-off-by: Bryan Montz <bryanmontz@me.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-09 07:40:39 -07:00
Bryan Montz
f619fef410
add RelayModel and RelayModelCache classes
...
Signed-off-by: Bryan Montz <bryanmontz@me.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-09 07:40:39 -07:00
Bryan Montz
91f02ccff5
add RelayLog to the bottom of the RelayDetailView
...
Signed-off-by: Bryan Montz <bryanmontz@me.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-09 07:40:39 -07:00
Bryan Montz
a63ea1e22b
add network state changes to RelayLogs
...
Signed-off-by: Bryan Montz <bryanmontz@me.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-09 07:40:39 -07:00
Bryan Montz
40e5e4a026
add a RelayLog to each RelayConnection and send events to it
...
Signed-off-by: Bryan Montz <bryanmontz@me.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-09 07:40:39 -07:00
Bryan Montz
ef4aeb40e0
add RelayLog class
...
Signed-off-by: Bryan Montz <bryanmontz@me.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-09 07:40:39 -07:00
William Casarin
13f98659a4
Prevent forged profile zap attacks
...
The fake note zap attack made me realize that there is a way to do fake
profile zaps using a similar technique. Since damus only checks the
first ptag if it is a profile zap, this means you could include multiple
ptags, the first one being the fake profile with the fake zapper, and
the second p tag as the real target.
This would allow a fake zapper to create a fake a zap, while the zap
notification would still appear for the second ptag because damus
listens for zap events via #p, and that would match the second ptag.
To fix this, ensure that zaps only have at most 1 ptag and 0 or 1 etag.
my CLN zapper checks this but if we don't check this here as well then
we run into fake zap issues.
Changelog-Fixed: Fix potential fake profile zap attacks
Cc: Tony Giorgio <tonygiorgio@protonmail.com >
Cc: benthecarman <benthecarman@live.com >
Cc: Vitor Pamplona <vitor@vitorpamplona.com >
2023-07-08 22:10:34 -07:00
William Casarin
f5ba909784
zaps: move pubkey check into standalone function
2023-07-08 22:09:30 -07:00
William Casarin
6031fe0847
Fix fake note zaps with forged p-tags
...
This fixes a zap issue where someone could send a fake zap with a zapper
that doesn't match the user's nostrPubkey zapper. This is possible
because damus looks up the zapper via the ptag on note zaps.
Fix this by first looking up the cached event's ptag instead. This
prevents zappers from trying to trick Damus into picking the wrong
zapper.
Fixes : #1357
Changelog-Fixed: Fix issue where malicious zappers can send fake zaps to another user's posts
Reported-by: benthecarman <benthecarman@live.com >
Cc: Tony Giorgio <tonygiorgio@protonmail.com >
2023-07-08 21:22:58 -07:00
William Casarin
1be2a9e1b1
ui: remove invalid zap text
2023-07-08 20:47:11 -07:00
cr0bar
4478348d10
Fix profile post button mentions
...
Fix for second part of issue #1352 where if you submit a reply from the
+ on a profile, it uses the hex nostr url rather than the bech32
version. When typing the @ manually it uses the bech32 so updated to
mirror this.
Changelog-Fixed: Fix profile post button mentions
Closes : #1355
2023-07-08 19:24:35 -07:00
Anthony de Broise
cf4131f867
Minor update to ConfigView.swift to fix key and search icon
...
Replaced icon names with names existing in assets to avoid them being left blank.
Changelog-Fixed: Fix icons on settings view
Closes : #1353
2023-07-08 08:14:26 -07:00
Bryan Montz
81b69bc2ea
add explanatory footer to Developer Mode setting view
...
Signed-off-by: Bryan Montz <bryanmontz@me.com >
Reviewed-by: William Casarin <jb55@jb55.com >
2023-07-08 08:06:52 -07:00
William Casarin
0c736a18a9
docs: annotate might be causing issues for some people
...
suhail was having trouble when this option was enabled. let's remove it
just in case.
2023-07-07 09:25:33 -07:00
Bryan Montz
d2efe06610
make "Copy Note JSON" a developer mode setting
...
Signed-off-by: Bryan Montz <bryanmontz@me.com >
2023-07-07 09:02:52 -07:00
Bryan Montz
ebcfe3c25f
add developer mode view and setting
...
Signed-off-by: Bryan Montz <bryanmontz@me.com >
2023-07-07 09:02:52 -07:00
William Casarin
6dfda93ff9
Fix Invalid Zap bug in reposts
...
Changelog-Fixed: Fix Invalid Zap bug in reposts
2023-07-04 13:48:49 -07:00
William Casarin
ea50f9214a
Switch to navigation stack in BuilderEventView
2023-07-04 13:48:49 -07:00
William Casarin
6c8cf8421c
zaps: make zap setting private
2023-07-04 13:47:44 -07:00
Ben Harvie
cbbe203d84
Create SECURITY.md
2023-07-04 12:45:15 -07:00
William Casarin
19217f47a4
v1.6 changelog
2023-07-04 12:21:12 -07:00
William Casarin
3451e7d88f
v1.6
2023-07-04 12:18:33 -07:00
William Casarin
b5ea1e011e
Revert "profile: make profile loading more lightweight for now"
...
Changelog-Fixed: Load more content on profile view
2023-07-04 11:51:07 -07:00
William Casarin
a04a401292
nscript: load script view
...
This allows you to open and run scripts for testing purposes, but only
from external links such as nostr:nscript...
2023-07-04 11:48:27 -07:00
tyiu
640fbf23ea
Fix UI bug with user search and fix race conditions on profiles NIP-05 cache
...
Signed-off-by: Terry Yiu <git@tyiu.xyz >
Reviewed-by: William Casarin <jb55@jb55.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-04 09:09:14 -07:00
William Casarin
3d0448a929
smaller nostrscript
2023-07-03 17:10:57 -07:00
William Casarin
30e33a01c1
nostrscript: add a helper function
2023-07-03 16:59:50 -07:00
William Casarin
a6cbf50def
settings: record bool option keys
...
so that NostrScripts know which bool settings can be set
2023-07-03 16:28:25 -07:00
prprhyt
94bd194287
Added event id validation
2023-07-03 15:03:33 -07:00
William Casarin
97f10e865f
NostrScript
...
NostrScript is a WebAssembly implementation that interacts with Damus.
It enables dynamic scripting that can be used to power custom list views,
enabling pluggable algorithms.
The web has JavaScript, Damus has NostrScript. NostrScripts can be
written in any language that compiles to WASM.
This commit adds a WASM interpreter I've written as a mostly-single C
file for portability and embeddability. In the future we could
JIT-compile these for optimal performance if NostrScripts get large and
complicated. For now an interpreter is simple enough for algorithm list
view plugins.
Changelog-Added: Add initial NostrScript implementation
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-03 14:31:38 -07:00
tyiu
0c0c58c0cc
Fix bug with Trie search
...
Exact matches were not being returned first in the array of results
Signed-off-by: Terry Yiu <git@tyiu.xyz >
Reviewed-by: William Casarin <jb55@jb55.com >
Signed-off-by: William Casarin <jb55@jb55.com >
2023-07-03 13:37:52 -07:00
William Casarin
7d49d3d9f1
refactor: make guard statement a bit more readible
...
It's a bit confusing to guard on a negative boolean expression
2023-07-03 12:48:25 -07:00
tyiu
cb1e16b1a4
Fix reports to conform to NIP-56
...
Changelog-Fixed: Fix reports to conform to NIP-56
Signed-off-by: Terry Yiu <git@tyiu.xyz >
Tested-by: William Casarin <jb55@jb55.com >
2023-07-03 12:25:12 -07:00
tyiu
6e964f71ff
Add trie-based user search cache to replace non-performant linear scans
...
Changelog-Added: Speed up user search
Tested-by: William Casarin <jb55@jb55.com >
Fixes : #1219
Closes : #1342
2023-07-03 12:06:01 -07:00
tyiu
4b7444f338
Fix profile navigation bugs from muted users list and relay list views
...
Changelog-Fixed: Fix profile navigation bugs from muted users list and relay list views
Signed-off-by: Terry Yiu <git@tyiu.xyz >
Reviewed-by: William Casarin <jb55@jb55.com >
2023-07-03 08:59:28 -07:00
tyiu
57159f7df9
Fix build warnings
...
Signed-off-by: Terry Yiu <git@tyiu.xyz >
Reviewed-by: William Casarin <jb55@jb55.com >
2023-07-03 08:50:17 -07:00
tyiu
4712c6b288
Fix navigation to translation settings view
...
Changelog-Fixed: Fix navigation to translation settings view
Signed-off-by: Terry Yiu <git@tyiu.xyz >
2023-07-03 08:25:04 -07:00
William Casarin
6a9b3cad20
Merge remote-tracking branch 'github/translations'
2023-07-02 13:34:04 -07:00
William Casarin
e5bd52b1f6
New paid email patch policy
2023-07-02 13:15:24 -07:00
Bryan Montz
7cd3aef157
Updated test target to deployment target of iOS 16.0
...
Changelog-Updated: Bumped minimum verison to iOS 16.0
Signed-off-by: Bryan Montz <bryanmontz@me.com >
2023-07-02 13:03:13 -07:00
transifex-integration[bot]
8f3d8ced90
Translate Localizable.stringsdict in es_ES
...
100% translated source file: 'Localizable.stringsdict'
on 'es_ES'.
2023-07-02 19:51:54 +00:00
transifex-integration[bot]
98ff4ee363
Translate Localizable.stringsdict in es_ES
...
100% translated source file: 'Localizable.stringsdict'
on 'es_ES'.
2023-07-02 19:51:22 +00:00
transifex-integration[bot]
ce7c4799c9
Translate Localizable.stringsdict in es_ES
...
100% translated source file: 'Localizable.stringsdict'
on 'es_ES'.
2023-07-02 19:50:09 +00:00
transifex-integration[bot]
11a4a85bdf
Translate Localizable.strings in es_ES
...
100% translated source file: 'Localizable.strings'
on 'es_ES'.
2023-07-02 19:47:59 +00:00
transifex-integration[bot]
6fe4ac1bd0
Translate Localizable.stringsdict in ja
...
100% translated source file: 'Localizable.stringsdict'
on 'ja'.
2023-07-02 09:13:54 +00:00
William Casarin
f702733654
nav: remove environmentObjects
...
environment objects are implicit arguments that cannot be checked by the
compiler. They are a common source of crashes. Use a main
NavigationCoordinator in DamusState for the core app, and pass in other
coordinators in the account setup view for the parts of the app that
don't have a DamusState.
2023-06-30 09:59:58 -07:00
Scott Penrose
9008c609e2
Switch to NavigationStack
...
Changelog-Changed: Drop iOS15 support
Changelog-Fixed: Fixed navigation popping issues
2023-06-30 06:44:26 -07:00
William Casarin
5bac6405b9
validation: make sure to run on a detached task
...
so we don't do sig validation on the main thread accidentally
2023-06-30 06:42:56 -07:00
Scott Penrose
69663b8207
A few more navigation links from rebase
2023-06-30 06:42:56 -07:00
Scott Penrose
58a707685c
Fix FollowUserView not allowing profile tapping
2023-06-30 06:42:56 -07:00
Scott Penrose
a76ddea7da
Remove popToRoot when tapping damus:// internal links
2023-06-30 06:42:56 -07:00
Scott Penrose
0018e7ad57
Convert remaining navigation links
2023-06-30 06:42:56 -07:00
Scott Penrose
8258c5beb0
Convert ContentView navigation links
2023-06-30 06:42:56 -07:00
Scott Penrose
f361f55bd5
Convert wallet NavigationLinks
2023-06-30 06:42:56 -07:00
Scott Penrose
c50ccef56d
Convert onboarding flow navigation links
2023-06-30 06:42:56 -07:00
Scott Penrose
242455410e
Convert more NavigationLinks to router
2023-06-30 06:42:56 -07:00
Scott Penrose
f0b0eade37
Convert to NavigationStack
...
- Fixes linking issues on SideMenu and tab switching issues
- I currently bumped to iOS 16+ to get iterate and get this working.
2023-06-30 06:42:56 -07:00
William Casarin
3e3b689647
readme: include new mailing lists
2023-06-29 07:45:50 -07:00
transifex-integration[bot]
67e3ee8978
Translate Localizable.strings in es_419
...
100% translated source file: 'Localizable.strings'
on 'es_419'.
2023-06-28 21:22:27 +00:00
transifex-integration[bot]
90891622e4
Translate Localizable.stringsdict in es_419
...
100% translated source file: 'Localizable.stringsdict'
on 'es_419'.
2023-06-28 21:20:50 +00:00
William Casarin
62f052daa5
nozaps: fix zap button in freedom edition
2023-06-28 21:16:56 +02:00
tyiu
25b3df8b89
Disable post button when media upload in progress
...
Changelog-Fixed: Disable post button when media upload in progress
Closes : #1324
2023-06-28 19:31:57 +02:00
tyiu
14accd222e
Fix taps on mentions in note drafts to not redirect to other Nostr clients
...
Changelog-Fixed: Fix taps on mentions in note drafts to not redirect to other Nostr clients
Closes : #1319
2023-06-28 19:31:16 +02:00
William Casarin
abcff3b928
profile: allow post button on every profile and prefill user tag
...
Changelog-Added: Add post button to profile pages
2023-06-28 17:40:27 +02:00
William Casarin
c8f18958a2
refactor: cleanup processFocusedWordForMention
2023-06-28 17:09:08 +02:00
transifex-integration[bot]
7a055efda8
Translate Localizable.stringsdict in hu_HU
...
100% translated source file: 'Localizable.stringsdict'
on 'hu_HU'.
2023-06-28 15:01:14 +00:00
transifex-integration[bot]
1ad8773c26
Translate Localizable.strings in hu_HU
...
100% translated source file: 'Localizable.strings'
on 'hu_HU'.
2023-06-28 14:57:46 +00:00
William Casarin
3b07a207c4
post: extract createUserTag so it can be re-used
2023-06-28 16:26:59 +02:00
William Casarin
d9a06e69ae
misc: remove some dead code
2023-06-28 16:25:04 +02:00
tyiu
32c71a4770
Add post button when logged in with private key and on own profile view
...
Changelog-Added: Add post button when logged in with private key and on own profile view
Closes : #1325
2023-06-28 15:49:34 +02:00
Bryan Montz
087d3e16a1
After loading the user's relays from their contact event, connect to new relays
...
Closes : #1298
2023-06-28 15:16:36 +02:00
tyiu
7cae61a86a
Fix missing profile zap notification text
...
Changelog-Fixed: Fix missing profile zap notification text
Closes : #1332
2023-06-28 14:48:06 +02:00
transifex-integration[bot]
b868119277
Translate Localizable.strings in ja
...
100% translated source file: 'Localizable.strings'
on 'ja'.
2023-06-28 08:15:41 +00:00
William Casarin
82c53e43e5
v1.5 (8)
2023-06-27 06:30:50 +02:00
William Casarin
3e274a820a
nozaps: restore zap button with zap info, just make it not clickable
2023-06-27 06:04:36 +02:00
William Casarin
1a0282fe21
Revert "nozaps: don't pull thread zaps in nozaps mode"
...
This reverts commit 6003a3c6f8 .
2023-06-27 05:59:59 +02:00
William Casarin
b2b687fb79
Revert "nozaps: hide zap total"
...
This reverts commit 57789de5cd .
2023-06-27 05:59:33 +02:00
William Casarin
94448a10bd
Revert "nozaps: hide zap details on notes for now"
...
This reverts commit b0d6d33573 .
2023-06-27 05:58:42 +02:00
William Casarin
66db4c5215
Revert "nozaps: don't show note zaps in notifications"
...
This reverts commit c5b0e539d8 .
2023-06-27 05:58:39 +02:00
William Casarin
1e2326cccf
v1.5 (7)
...
rip zap button
2023-06-27 05:35:53 +02:00
William Casarin
959f208e36
profile: make profile loading more lightweight for now
2023-06-27 05:31:22 +02:00
William Casarin
7d80985b06
nozaps: remove zap button on posts
2023-06-27 05:31:14 +02:00
transifex-integration[bot]
3b085ab826
Translate Localizable.strings in zh_HK
...
100% translated source file: 'Localizable.strings'
on 'zh_HK'.
2023-06-26 10:46:06 +00:00
transifex-integration[bot]
28077ab91d
Translate Localizable.stringsdict in zh_HK
...
100% translated source file: 'Localizable.stringsdict'
on 'zh_HK'.
2023-06-26 10:45:27 +00:00
transifex-integration[bot]
8d0a8909b9
Translate Localizable.strings in zh_TW
...
100% translated source file: 'Localizable.strings'
on 'zh_TW'.
2023-06-26 10:43:34 +00:00
transifex-integration[bot]
23bc6d0710
Translate Localizable.stringsdict in zh_TW
...
100% translated source file: 'Localizable.stringsdict'
on 'zh_TW'.
2023-06-26 10:41:55 +00:00
transifex-integration[bot]
993444d24b
Translate Localizable.stringsdict in zh_CN
...
100% translated source file: 'Localizable.stringsdict'
on 'zh_CN'.
2023-06-26 10:40:49 +00:00
transifex-integration[bot]
cd30154990
Translate Localizable.strings in zh_CN
...
100% translated source file: 'Localizable.strings'
on 'zh_CN'.
2023-06-26 10:40:42 +00:00
transifex-integration[bot]
4513863c95
Translate Localizable.strings in zh_CN
...
100% translated source file: 'Localizable.strings'
on 'zh_CN'.
2023-06-26 10:37:50 +00:00
transifex-integration[bot]
19684bae36
Translate Localizable.strings in zh_CN
...
100% translated source file: 'Localizable.strings'
on 'zh_CN'.
2023-06-26 10:37:19 +00:00
transifex-integration[bot]
6b878e96cd
Translate Localizable.stringsdict in zh_CN
...
100% translated source file: 'Localizable.stringsdict'
on 'zh_CN'.
2023-06-26 10:32:17 +00:00
William Casarin
40a51edafe
readme: patchstr bounties
2023-06-26 12:03:05 +02:00
tyiu
cfe14fac23
Deduplicate users in group notifications
...
Changelog-Fixed: Deduplicate users in notifications
Closes : #1326
2023-06-26 11:31:36 +02:00
tyiu
2046fe5502
Fix notification content rendering of repost and reaction events
...
Closes : #1318
Changelog-Fixed: Fix notification content rendering of repost and reaction events
2023-06-26 11:20:11 +02:00
Bryan Montz
2d4ddc7b9c
Fix crash related to VideoPlayer and CMTime
...
Closes : #1321
Changelog-Fixed: Fix crash related to VideoPlayer
2023-06-26 11:20:11 +02:00
William Casarin
6003a3c6f8
nozaps: don't pull thread zaps in nozaps mode
2023-06-26 11:20:11 +02:00
transifex-integration[bot]
572cae7dc5
Translate Localizable.strings in nl
...
100% translated source file: 'Localizable.strings'
on 'nl'.
2023-06-26 08:59:40 +00:00
transifex-integration[bot]
8d7d3d0d37
Translate Localizable.stringsdict in nl
...
100% translated source file: 'Localizable.stringsdict'
on 'nl'.
2023-06-26 08:58:56 +00:00
transifex-integration[bot]
c76fc5bcce
Translate Localizable.stringsdict in nl
...
100% translated source file: 'Localizable.stringsdict'
on 'nl'.
2023-06-26 08:58:25 +00:00
transifex-integration[bot]
3a357c8d82
Translate Localizable.stringsdict in nl
...
100% translated source file: 'Localizable.stringsdict'
on 'nl'.
2023-06-26 08:58:10 +00:00
transifex-integration[bot]
ac59ee6285
Translate Localizable.strings in el_GR
...
100% translated source file: 'Localizable.strings'
on 'el_GR'.
2023-06-26 08:52:08 +00:00
transifex-integration[bot]
a870b86490
Translate Localizable.stringsdict in el_GR
...
100% translated source file: 'Localizable.stringsdict'
on 'el_GR'.
2023-06-26 08:43:40 +00:00
transifex-integration[bot]
cb2da7f3c6
Translate Localizable.stringsdict in sv_SE
...
100% translated source file: 'Localizable.stringsdict'
on 'sv_SE'.
2023-06-26 06:28:24 +00:00
transifex-integration[bot]
71f3b9b013
Translate Localizable.strings in sv_SE
...
100% translated source file: 'Localizable.strings'
on 'sv_SE'.
2023-06-26 06:27:13 +00:00
tyiu
e220b0756f
Export strings for translation
2023-06-25 23:46:53 -04:00
transifex-integration[bot]
83abedb4d6
Translate Localizable.stringsdict in sv_SE
...
100% translated source file: 'Localizable.stringsdict'
on 'sv_SE'.
2023-06-25 23:45:19 -04:00
transifex-integration[bot]
23b057779a
Translate Localizable.strings in sv_SE
...
100% translated source file: 'Localizable.strings'
on 'sv_SE'.
2023-06-25 23:45:19 -04:00
tyiu
422167f7aa
Add indication of followers you know in a profile
...
Changelog-Added: Add indication of followers you know in a profile
2023-06-25 09:38:57 +02:00
William Casarin
de84456a57
mediaurl: fix is_img returning true for videos
...
This makes the image preloader try to download videos... not good.
2023-06-25 09:38:46 +02:00
William Casarin
b70bf1f647
v1.5-6
2023-06-25 09:38:46 +02:00
William Casarin
3db77a16a0
Fix timeline from moving when you're scrolling
2023-06-24 17:39:24 +02:00
William Casarin
2256e2e625
v1.5-5 changelog
2023-06-24 08:39:51 +02:00
William Casarin
a641f972ff
v1.5-5
2023-06-24 08:38:02 +02:00
William Casarin
c5846008f2
fix weird quirk with universe toolbar filter button
2023-06-24 08:27:12 +02:00
William Casarin
62bf767be5
nozaps: fix some tests
2023-06-23 20:46:27 +02:00
William Casarin
c00746758e
nozaps: disable donation star unless you're on freedom edition
2023-06-23 20:46:27 +02:00
William Casarin
a89f90d7ee
nozaps: hide SupportDamus on appstore builds
2023-06-23 20:46:27 +02:00
William Casarin
07d0818ee8
nozaps: disable zap delay on appstore since we don't have 1-tap anymore
2023-06-23 20:46:27 +02:00
William Casarin
0ce7414488
nozaps: disable donation zaps on appstore
2023-06-23 20:46:27 +02:00
William Casarin
f090596067
nozaps: switch to global sheet when zapping
...
This fixes many popping bugs
Changelog-Fixed: Fix zap sheet popping
2023-06-23 20:46:27 +02:00
William Casarin
61b3ad2990
nozaps: update zap sheet style to make it clear its a user zap
2023-06-23 20:46:27 +02:00
William Casarin
8b24befaf7
nozaps: don't include zaps in thread replies
2023-06-23 20:46:27 +02:00
William Casarin
57789de5cd
nozaps: hide zap total
2023-06-23 20:46:27 +02:00
William Casarin
62c539afbf
nozaps: never show orange button
2023-06-23 20:46:27 +02:00
William Casarin
b53e6db96b
nozaps: show the user you are zapping in CustomizeZapView
...
This should make it clear that it's definitely not a note zap
2023-06-23 20:46:27 +02:00
William Casarin
b0d6d33573
nozaps: hide zap details on notes for now
2023-06-23 20:46:27 +02:00
William Casarin
c5b0e539d8
nozaps: don't show note zaps in notifications
...
apple sucks
2023-06-23 20:46:27 +02:00
William Casarin
601fa49a6e
nozaps: don't show top zaps or zap replies
...
We can't associate zaps with notes anymore
2023-06-23 20:46:27 +02:00
William Casarin
216029410b
nozaps: add nozaps setting
...
This will be used to restore functionality in the future
2023-06-23 20:46:27 +02:00
William Casarin
a5b2a5c8b9
tests: disable invalid tests
2023-06-23 20:46:27 +02:00
William Casarin
980394bf0b
Revert "ui: remove nip05 badge on events"
...
This reverts commit d205be3e0a .
2023-06-23 20:46:17 +02:00
William Casarin
ed73899e5b
Revert "Initial actionbar model refactor"
...
This reverts commit d0eb86dfa3 .
2023-06-23 12:04:54 +02:00
William Casarin
d0eb86dfa3
Initial actionbar model refactor
2023-06-23 11:53:53 +02:00
William Casarin
337c4de337
reduce ContentView redraws
...
Remove observability from the home model, and use inner models for
updating specific parts of the UI, such as notification dots on the tab
bar.
2023-06-23 11:51:51 +02:00
William Casarin
e885f38c54
refactor: switch CustomizeZapView to use a model
...
Changelog-Fixed: Fix CustomizeZapView from randomly disappearing
2023-06-23 11:51:51 +02:00
William Casarin
3dbdc42d8b
view/refactor: remove extra spacer
2023-06-23 11:46:42 +02:00
William Casarin
1389e50b8e
fix some warnings
2023-06-23 11:46:42 +02:00
William Casarin
092d84f499
eventholder: don't push view updates on queued events
2023-06-23 11:46:42 +02:00
William Casarin
c6a226fff8
Revert "ping: switch to async style"
...
This was causing crashes =/
2023-06-23 11:46:42 +02:00
William Casarin
e023d1e9cb
settings: turn off wallet selector by default
...
This is a bit confusing for new users
2023-06-23 11:46:42 +02:00
William Casarin
e6b8e39106
actionbar: rename accessibility label boosts to reposts
2023-06-23 11:46:42 +02:00
William Casarin
ced028755c
debug: InnerTimeline render counts
2023-06-23 11:46:42 +02:00
William Casarin
dabf737654
Merge remote-tracking branch 'github/translations'
2023-06-22 10:25:14 +02:00
William Casarin
72d141af61
wording: send a "message" with the zap, not "reply"
2023-06-22 10:23:56 +02:00
William Casarin
4d43e590e0
view: Add ZapUserView
...
This will be used to make it clear that we are zapping a user
2023-06-22 10:23:56 +02:00
William Casarin
c413589582
eventgroup: add is_note_zap
...
We'll need this to hide note zaps as per apple's insanely dumb
guidelines.
2023-06-22 10:23:56 +02:00
William Casarin
c218e0dcdd
refactor: use zap.is_anon instead of recomputing
...
I believe this code was written before we computed is_anon inside the
zap.
2023-06-22 10:23:56 +02:00
William Casarin
892765eaa5
UserView: Make spacer optional
...
We need this to center this view sometimes. We should look into removing
this in the future?
2023-06-22 10:23:56 +02:00
William Casarin
455f1f7e1f
view/refactor: remove redundant view structs
2023-06-22 10:23:56 +02:00
William Casarin
797762e7d2
view/refactor: move sheet handler in CustomizeZapView
2023-06-22 10:23:56 +02:00
transifex-integration[bot]
efe6689bfb
Translate Localizable.stringsdict in ja
...
100% translated source file: 'Localizable.stringsdict'
on 'ja'.
2023-06-22 01:14:40 +00:00
transifex-integration[bot]
e30541c37e
Translate Localizable.strings in ja
...
100% translated source file: 'Localizable.strings'
on 'ja'.
2023-06-22 01:12:38 +00:00
transifex-integration[bot]
b126257d05
Translate Localizable.stringsdict in es_ES
...
100% translated source file: 'Localizable.stringsdict'
on 'es_ES'.
2023-06-21 23:22:27 +00:00
transifex-integration[bot]
fde21559c7
Translate Localizable.strings in es_ES
...
100% translated source file: 'Localizable.strings'
on 'es_ES'.
2023-06-21 23:15:17 +00:00
transifex-integration[bot]
d551b5f28b
Translate Localizable.strings in es_ES
...
100% translated source file: 'Localizable.strings'
on 'es_ES'.
2023-06-21 23:14:48 +00:00
transifex-integration[bot]
961ff6f28b
Translate Localizable.strings in fr
...
100% translated source file: 'Localizable.strings'
on 'fr'.
2023-06-21 15:20:57 +00:00
transifex-integration[bot]
fdfd0f0275
Translate Localizable.strings in nl
...
100% translated source file: 'Localizable.strings'
on 'nl'.
2023-06-21 15:16:19 +00:00
transifex-integration[bot]
8b1b597f2a
Translate Localizable.stringsdict in nl
...
100% translated source file: 'Localizable.stringsdict'
on 'nl'.
2023-06-21 15:16:05 +00:00
transifex-integration[bot]
f3de41ff08
Translate Localizable.stringsdict in vi
...
100% translated source file: 'Localizable.stringsdict'
on 'vi'.
2023-06-21 14:33:19 +00:00
transifex-integration[bot]
bf010be27a
Translate Localizable.strings in vi
...
100% translated source file: 'Localizable.strings'
on 'vi'.
2023-06-21 14:32:11 +00:00
transifex-integration[bot]
b013c1f1fd
Translate Localizable.stringsdict in zh_HK
...
100% translated source file: 'Localizable.stringsdict'
on 'zh_HK'.
2023-06-21 12:37:01 +00:00
transifex-integration[bot]
50dfa9e2ed
Translate Localizable.stringsdict in zh_TW
...
100% translated source file: 'Localizable.stringsdict'
on 'zh_TW'.
2023-06-21 12:36:51 +00:00
transifex-integration[bot]
78450792cb
Translate Localizable.strings in zh_TW
...
100% translated source file: 'Localizable.strings'
on 'zh_TW'.
2023-06-21 12:36:17 +00:00
transifex-integration[bot]
4dc2571177
Translate Localizable.strings in zh_HK
...
100% translated source file: 'Localizable.strings'
on 'zh_HK'.
2023-06-21 12:35:58 +00:00
transifex-integration[bot]
04493b53dc
Translate Localizable.strings in zh_CN
...
100% translated source file: 'Localizable.strings'
on 'zh_CN'.
2023-06-21 12:35:14 +00:00
transifex-integration[bot]
f383388f42
Translate Localizable.stringsdict in zh_CN
...
100% translated source file: 'Localizable.stringsdict'
on 'zh_CN'.
2023-06-21 12:34:30 +00:00
transifex-integration[bot]
d4cdc7706d
Translate Localizable.stringsdict in fr
...
100% translated source file: 'Localizable.stringsdict'
on 'fr'.
2023-06-21 11:57:54 +00:00
tyiu
b70406d669
Fix "zapped your profile" strings to say "zapped you"
...
Changelog-Fixed: Fix "zapped your profile" strings to say "zapped you"
2023-06-21 07:35:16 -04:00
William Casarin
a2866ff6b3
Merge remote-tracking branch 'github/translations'
2023-06-21 10:19:47 +02:00
transifex-integration[bot]
1f0e31faa0
Translate Localizable.strings in hu_HU
...
100% translated source file: 'Localizable.strings'
on 'hu_HU'.
2023-06-21 08:14:48 +00:00
William Casarin
2ff12cdfa6
video: switch videoplayer to use detached tasks
2023-06-20 17:00:48 +02:00
William Casarin
b7b7d65612
perf: don't use string concat when calculing SeenEven hash
...
Profiler was complaining about this one
2023-06-20 17:00:48 +02:00
William Casarin
d205be3e0a
ui: remove nip05 badge on events
...
Changelog-Changed: Remove nip05 on events
2023-06-20 17:00:48 +02:00
William Casarin
0bea81c632
perf: move blurhash processing to a background task
...
Using Task directly will only inherent the parent thread. We need
detached to do heaving processing.
2023-06-20 17:00:48 +02:00
William Casarin
e4842cca3c
logs: don't print filters
...
It can be slow
2023-06-20 17:00:48 +02:00
William Casarin
87d4752aa4
ui: use AboutView in existing views
2023-06-20 17:00:48 +02:00
William Casarin
6ec533b0cd
view: Add AboutView
...
This will be used by different views for the user's about section
2023-06-20 17:00:48 +02:00
William Casarin
51a58360f9
debug slow scroll
2023-06-20 15:29:44 +02:00
William Casarin
fe025532e8
Merge remote-tracking branch 'github/translations'
2023-06-20 11:27:29 +02:00
William Casarin
6eb548a0a9
Fix reconnect loop issues on iOS17
...
Changelog-Fixed: Fix reconnect loop issues on iOS17
2023-06-20 11:21:21 +02:00
William Casarin
bcaa1d2354
ping: switch to async style
...
because reasons
2023-06-20 11:21:07 +02:00
Bryan Montz
296d96d6df
rename RelayStatus to RelayStatusView
2023-06-20 10:18:34 +02:00
Bryan Montz
28854fdc93
simplify and fix issues with RelayStatus
2023-06-20 10:18:34 +02:00
Bryan Montz
2901cc860f
make RelayConnection's state observable
2023-06-20 10:18:34 +02:00
William Casarin
3db13ae171
Fix build for iOS17
2023-06-20 10:18:23 +02:00
transifex-integration[bot]
49dedaec04
Translate Localizable.strings in sv_SE
...
100% translated source file: 'Localizable.strings'
on 'sv_SE'.
2023-06-20 07:50:51 +00:00
transifex-integration[bot]
491d4c4d25
Translate Localizable.strings in sv_SE
...
100% translated source file: 'Localizable.strings'
on 'sv_SE'.
2023-06-20 07:49:38 +00:00
transifex-integration[bot]
afcbaea331
Translate Localizable.strings in zh_HK
...
100% translated source file: 'Localizable.strings'
on 'zh_HK'.
2023-06-19 10:21:11 +00:00
transifex-integration[bot]
340e134046
Translate Localizable.strings in zh_TW
...
100% translated source file: 'Localizable.strings'
on 'zh_TW'.
2023-06-19 10:21:08 +00:00
transifex-integration[bot]
e68952fa0c
Translate Localizable.strings in zh_CN
...
100% translated source file: 'Localizable.strings'
on 'zh_CN'.
2023-06-19 10:20:07 +00:00
transifex-integration[bot]
83af4ddd89
Translate Localizable.strings in zh_CN
...
100% translated source file: 'Localizable.strings'
on 'zh_CN'.
2023-06-19 10:19:29 +00:00
transifex-integration[bot]
53262afa01
Translate Localizable.strings in nl
...
100% translated source file: 'Localizable.strings'
on 'nl'.
2023-06-19 08:39:13 +00:00
transifex-integration[bot]
95148e9c9c
Translate Localizable.strings in cs
...
100% translated source file: 'Localizable.strings'
on 'cs'.
2023-06-19 08:04:14 +00:00
transifex-integration[bot]
5bf4a2cc5a
Translate Localizable.strings in ja
...
100% translated source file: 'Localizable.strings'
on 'ja'.
2023-06-19 07:30:18 +00:00
tyiu
2d29403145
Remove string referencing tipping posts, add missing localized string comments, and export strings for translation
2023-06-19 00:39:35 -04:00
gladiusKatana
df20b67fc1
video: stop video in post when it disappears from view
...
Changelog-Fixes: Stop video when it disappears from view
2023-06-16 18:34:14 +02:00
William Casarin
0b5d68c0b8
Revert "threads: attempt to fix state jankiness"
...
This reverts commit f4024895ba .
2023-06-14 09:30:58 +02:00
William Casarin
f4024895ba
threads: attempt to fix state jankiness
...
Changelog-Fixed: Fix some more thread jankiness
2023-06-14 09:20:51 +02:00
William Casarin
bcdd0b4e23
Revert "Add Inter font"
...
This reverts commit 271e3ad54a .
2023-06-12 11:25:27 +02:00
William Casarin
1c655d47b2
home: add comment explaining send_home_filters
2023-06-10 15:09:43 +02:00
William Casarin
24cc361d60
refactor: make send_initial_filter more readible
2023-06-10 15:09:43 +02:00
Bryan Montz
71bb9d6c92
Add text description to WebSocket for state logging
2023-06-10 12:39:25 +02:00
Ben Weeks
271e3ad54a
Add Inter font
...
ChangeLog-Changed: Switch to new font (Inter)
2023-06-10 12:38:13 +02:00
transifex-integration[bot]
dac21a1562
Update Translations
...
Translate Localizable.strings in cs
Translate Localizable.strings in el_GR
Translate Localizable.strings in nl
Translate Localizable.strings in sv_SE
Translate Localizable.strings in zh_CN
Translate Localizable.strings in zh_HK
Translate Localizable.strings in zh_TW
Translate Localizable.stringsdict in el_GR
Translate Localizable.stringsdict in nl
Translate Localizable.stringsdict in sv_SE
Translate Localizable.stringsdict in zh_CN
Translate Localizable.stringsdict in zh_HK
Translate Localizable.stringsdict in zh_TW
Closes : #1262
2023-06-10 11:43:32 +02:00
tyiu
ae9ae66b39
Fix spelling of Nostr to use Titlecase instead of lowercase
...
Changelog-Fixed: Fix spelling of Nostr to use Titlecase instead of lowercase
2023-06-10 11:42:25 +02:00
tyiu
e7281fdacc
Add missing localized string comment
2023-06-10 11:42:25 +02:00
tyiu
baa5454e2a
Rename all usages of the term Post as a noun to Note to conform to the Nostr spec
...
Changelog-Fixed: Rename all usages of the term Post as a noun to Note to conform to the Nostr spec
2023-06-10 11:42:25 +02:00
gladiusKatana
60a892d73b
LoginView: prevent explainer-text cutoff on login with npub
...
Changelog-Fixed: Fix text cutoff on login with npub
Closes : #1264
2023-06-10 11:39:00 +02:00
William Casarin
0ee360f2fa
Fix video player hangs
...
Changelog-Fixed: Fix hangs due to video player
2023-06-10 11:33:35 +02:00
William Casarin
c59d2a96af
Make profile picture placeholder gray instead of purple
2023-06-10 11:33:18 +02:00
William Casarin
ba3a6b07b2
Fix warnings
2023-06-10 11:33:07 +02:00
William Casarin
043eb5b436
Show zap comments in threads and show top zap
...
Changelog-Added: Top zaps
Changelog-Added: Show zap comments in threads
2023-06-09 10:11:25 +02:00
William Casarin
8f237b47eb
qrscan: use explicit types when scanning
2023-06-07 08:06:06 +02:00
William Casarin
a0caf9ce07
find_event: refactor with more explicit types
2023-06-07 08:06:06 +02:00
William Casarin
3277aac220
refactor: use guard in qr profile lookup
2023-06-07 08:06:03 +02:00
William Casarin
e67dac13c6
refactor: use guard in handleProfileScan
2023-06-07 08:06:03 +02:00
Suhail Saqan
5f2c8223bd
Add qr code scanner
...
Changelog-Added: Add qr code scanner
Closes : #733
2023-06-07 08:05:27 +02:00
tyiu
14977fe3dd
Replace indexed mentions with NIP-27
...
Changelog-Fixed: Replace indexed mentions with NIP-27
Closes : #1213
2023-06-07 06:22:38 +02:00
William Casarin
1d3c181b85
Translations
...
Translate Localizable.strings in ja
Translate Localizable.strings in de
Translate Localizable.strings in vi
Translate Localizable.strings in zh_TW
Translate Localizable.strings in zh_HK
Translate Localizable.strings in zh_CN
Translate Localizable.strings in ru
Localizable.strings in cs
Closes : #1253
2023-06-07 06:17:30 +02:00
tyiu
8ca377bec9
Add max length truncation to displayed profile attributes to mitigate spam
...
Changelog-Fixed: Add max length truncation to displayed profile attributes to mitigate spam
Fixes : #1237
2023-06-04 17:50:52 -04:00
tyiu
952d6746d5
Add profile zaps
...
Refactor profile zaps to reuse same BOLT11 Lightning invoice logic as
note zaps, which fixes profile zaps from Cash App and Muun wallets
Changelog-Added: Add profile zaps
Changelog-Fixed: Fix profile zapping for Muun and Strike wallets
Closes : #1236
Fixes : #1067
2023-06-04 10:56:43 -07:00
Suhail Saqan
b3b335f917
Add NWC paste button
...
Changelog-Added: Added Wallet Connect paste button
Closes : #1235
2023-06-04 10:56:43 -07:00
tyiu
dde48132c9
Fix CI tests
...
Closes : #1204
2023-05-31 16:40:59 -07:00
William Casarin
809a08ef63
v1.5 (3)
2023-05-30 19:40:37 -07:00
William Casarin
57e6f083b8
Revert "Updated UI to use custom font"
...
This reverts commit 020a00bf7e .
2023-05-30 19:35:21 -07:00
William Casarin
cfa1e13887
Revert "Add .frame & .position modifiers to TextEntry using ScrollView geometry"
...
This reverts commit f7a0370824 .
2023-05-30 19:29:23 -07:00
William Casarin
6eecb5ef26
video-player: don't stop audio, mix with external media
2023-05-30 18:44:36 -07:00
William Casarin
5dc3e2635e
video-player: don't randomly stop video
2023-05-30 18:38:04 -07:00
William Casarin
2713e76e17
v1.5-2 changelog
2023-05-30 18:08:57 -07:00
William Casarin
6aa28fce6c
v1.5-2
2023-05-30 18:04:21 -07:00
William Casarin
a6fb175b98
Add Full-Bleed Video Player
...
Changelog-Added: Add new full-bleed video player
2023-05-30 18:02:19 -07:00
William Casarin
554c091d57
video-player: hide mute button when we have no audio
2023-05-30 17:58:48 -07:00
William Casarin
9e359650bf
carousel: fix image positioning
2023-05-30 17:58:48 -07:00
William Casarin
bb091d072f
cache: move event-specific media metadata to EventCache
2023-05-30 17:58:48 -07:00
William Casarin
88b04fde09
xcode: remove .git ext from package
2023-05-30 17:58:48 -07:00
William Casarin
a1753b2c24
video-player: add tap gesture to prevent nav
2023-05-30 17:58:48 -07:00
William Casarin
80fac1903e
carousel: switch to media carousel and include video
2023-05-30 09:36:39 -07:00
William Casarin
6214ab8d8f
video: add DamusVideoPlayer view
2023-05-29 17:11:14 -07:00
William Casarin
85cd1bea19
urls: combine url classification
2023-05-29 17:11:13 -07:00
William Casarin
4d95d36a1e
Add GSPlayer + VideoPlayer
2023-05-29 17:10:14 -07:00
William Casarin
185fba150f
carousel: fix scroll-up bug
2023-05-29 16:09:16 -07:00
Ben Weeks
06ba0f7387
Add ability to show multiple posts per user in Universe
...
ChangeLog-Added: Add ability to show multiple posts per user in Universe
Closes : #1198
Fixes : #1189
2023-05-29 15:35:29 -07:00
William Casarin
51c4fa1e32
Initial redesign
...
Changelog-Changed: Redesign phase 1 (text, icons)
2023-05-29 15:31:07 -07:00
Ben Weeks
ed4ef0e215
Tweaked action bar icon sizes.
2023-05-29 14:47:10 -07:00
Ben Weeks
973e9fe714
Custom iconography added for other areas of the app.
...
Changelog-Added: Custom iconography added for other areas of the app.
2023-05-29 14:47:05 -07:00
Ben Weeks
d12281fcc5
Custom iconography for the left navigation.
...
ChangeLog-Added: Custom iconography for the left navigation.
2023-05-29 14:46:59 -07:00
Ben Weeks
156d885e6e
Custom iconography for the tab buttons.
...
ChangeLog-Added: Custom iconography for the tab buttons.
2023-05-29 14:46:52 -07:00
ericholguin
bf01d08ea0
setupview: remove damus white button implementation
2023-05-29 14:38:24 -07:00
ericholguin
548d8e49ec
createaccount: ui: modify text field look
2023-05-29 14:38:24 -07:00
ericholguin
0fc38e5c05
createaccount: ui: change color of copy icon
2023-05-29 14:38:24 -07:00
ericholguin
028cab9cf6
createaccount: ui: replace damus white buttons with gradient style buttons
2023-05-29 14:38:24 -07:00
ericholguin
29068a40c8
createaccount: ui: remove damus gradient and white font color add background
2023-05-29 14:38:24 -07:00
ericholguin
ff06cfaf0c
createaccount: ui: refactor signup form
2023-05-29 14:38:24 -07:00
ericholguin
eb72fb481c
createaccount: remove username from the form
2023-05-29 14:38:24 -07:00
ericholguin
5b7339a0de
createaccount: ui: move key text and profile picture selection into frame
2023-05-29 14:38:24 -07:00
ericholguin
06ba72a23d
createaccount: ui: remove create account text
2023-05-29 14:38:24 -07:00
ericholguin
47d594af00
createaccount: ui: center pubkey text and add gradient style
2023-05-29 14:38:24 -07:00
ericholguin
dd022a953c
createaccount: ui: add navigation title and use general padding
2023-05-29 14:38:24 -07:00
ericholguin
a4cbf6a12a
createaccount: ui: include login prompt and add padding
2023-05-29 14:38:24 -07:00
ericholguin
62dfc24e58
createaccount: ui: change the look of the form label
2023-05-29 14:38:24 -07:00
ericholguin
cf15bd3463
createaccount: ui: change the look of the form text field
2023-05-29 14:38:24 -07:00
ericholguin
fd44a56f9b
createaccount: ui: remove fixed color from back nav
2023-05-29 14:38:24 -07:00
ericholguin
9a9fb28a48
createaccount: ui: add login prompt view struct
2023-05-29 14:38:24 -07:00
ericholguin
ba7f675300
createaccount: ui: remove damus white button and use gradient style button
2023-05-29 14:38:24 -07:00
ericholguin
8e84b446a5
createaccount: ui: remove damus gradient
2023-05-29 14:38:24 -07:00
ericholguin
8dbe2c728f
loginview: ui: update login preview
2023-05-29 14:38:24 -07:00
ericholguin
f975723c0f
loginview: ui: include create account prompt view
2023-05-29 14:38:24 -07:00
ericholguin
8ed04f0b0e
loginview: ui: add orange color and bold font to pubkey message
2023-05-29 14:38:24 -07:00
ericholguin
e33cb3b1c3
loginview: ui: replace damus white button with gradient style button
2023-05-29 14:38:24 -07:00
ericholguin
f171cfffe7
loginview: functionality: removed the toggle for hex npub - NEEDS UPDATING
2023-05-29 14:38:24 -07:00
ericholguin
46556c8bdc
loginview: ui: replace existing views with new sign in header and entry views
2023-05-29 14:38:24 -07:00
ericholguin
10fec3cbf8
loginview: add create account prompt view struct
2023-05-29 14:38:24 -07:00
ericholguin
7250cf0d8f
loginview: add sign in entry view struct
2023-05-29 14:38:24 -07:00
ericholguin
2bddd5ce92
loginview: add sign in header view struct
2023-05-29 14:38:24 -07:00
ericholguin
027b39caed
loginview: ui: fix up key input textfield appearance
2023-05-29 14:38:24 -07:00
ericholguin
122d0e451e
loginview: ui: replace damus gradient with new login background
2023-05-29 14:38:24 -07:00
ericholguin
f99e311e58
eulaview: ui: use new eula background
2023-05-29 14:38:24 -07:00
ericholguin
3fbf3cc12e
eulaview: ui: replace damus white buttons with new gradient style buttons
2023-05-29 14:38:24 -07:00
ericholguin
6682f792d8
eulaview: fix up formatting and use new eula variable
2023-05-29 14:38:24 -07:00
ericholguin
2e53ce3905
eulaview: create eula variable and update headers to bold
2023-05-29 14:38:24 -07:00
ericholguin
c238b6e28f
setupview: ui: remove old title, buttons, carousel and use new welcome, views, and lets get started button
2023-05-29 14:38:24 -07:00
ericholguin
e99142a5b8
setupview: remove damus gradient and use new login background
2023-05-29 14:38:24 -07:00
ericholguin
5716578c20
setupview: add why we need nostr view
2023-05-29 14:38:24 -07:00
ericholguin
ec35a413fe
setupview: add what is nostr view
2023-05-29 14:38:24 -07:00
ericholguin
724773cb45
setupview: add learn about nostr link view
2023-05-29 14:38:24 -07:00
ericholguin
15acdef912
navigation: remove SetupState and references and update navigation links for onboarding flow
2023-05-29 14:38:24 -07:00
ericholguin
72cc4c1fd7
assets: added nostr logo image used in setup view
2023-05-29 14:38:24 -07:00
ericholguin
65f4227e9b
assets: added lightbulb image used in setup view
2023-05-29 14:38:24 -07:00
ericholguin
f0be5a5ad8
assets: added login header background
2023-05-29 14:38:24 -07:00
ericholguin
48855d5d41
assets: added background for the EULA
2023-05-29 14:38:24 -07:00
ericholguin
90c22fdabd
components: added reusable gradient button style
2023-05-29 14:38:24 -07:00
ericholguin
dfd1032cd8
gradients: add pink gradient
2023-05-29 14:38:24 -07:00
ericholguin
a0e1e16f17
gradients: add damus logo gradient
2023-05-29 14:38:24 -07:00
Ben Weeks
020a00bf7e
Updated UI to use custom font
...
Changelog-Changed: Updated UI to use custom font
2023-05-29 14:38:24 -07:00
William Casarin
297aaf86c6
carousel: only show blurhash when there is one images
...
Blurhash interacts strangely with carousel
2023-05-29 14:31:54 -07:00
William Casarin
f6dd060580
fixup! Add new image carousel
2023-05-29 14:31:16 -07:00
William Casarin
12428d01ad
preloader: only preload non-animated images to test animation bug fix
2023-05-29 14:22:54 -07:00
Ben Weeks
d091543448
Add new image carousel
...
Changelog-Added: Added dots under image carousel
Changelof-Fixed: Fixed carousel issues with multiple images of different aspect ratios
Closes : #1004
2023-05-29 14:22:50 -07:00
Ben Weeks
2e596a47a1
Fix event menu capitalization
...
Closes : #1191
2023-05-29 13:23:24 -07:00
OlegAba
ff15156297
Fix side menu offset
...
Changelog-Fixed: Fix side menu bug in landscape
Closes : #560
2023-05-29 13:17:05 -07:00
Ben Weeks
0a9fbf5031
Removed hex key to RGB functionality.
2023-05-29 12:42:58 -07:00
Ben Weeks
8eebc2abe5
Minor changes to profile ready for rebrand Key removal from nPub in profile
2023-05-29 12:42:58 -07:00
Ben Weeks
c22199165a
Use "Follow me on nostr" text when looking at someone else's QR code
...
Fixes : #1069
Closes : #1199
Changelog-Fixed: Use "Follow me on nostr" text when looking at someone else's QR code
2023-05-29 12:27:07 -07:00
gladiusKatana
f7a0370824
Add .frame & .position modifiers to TextEntry using ScrollView geometry
...
Closes : #1201
Changelog-Fixed: Fix issue where cursor dissapears when typing long message
2023-05-29 12:22:44 -07:00
Bryan Montz
fe4277e817
simplified call site usage of NostrFilter
2023-05-29 12:19:27 -07:00
William Casarin
6804fbb607
Attempt fix for randomly broken animated GIFs
...
Changelog-Fixed: Attempt fix for randomly broken animated gifs
2023-05-29 10:18:52 -07:00
William Casarin
05503024cc
Profile Caching
...
Changelog-Added: Add profile caching
2023-05-26 12:11:43 -07:00
gladius
e4e477a2ac
Fix cursor jumping when pressing return
...
Changelog-Fixed: Fix cursor jumping when pressing return
Closes : #775
2023-05-26 11:20:40 -07:00
tyiu
59e7a42b5f
Fix side menu label size so that translations in longer languages fit without wrapping
...
Changelog-Fixed: Fix side menu label size so that translations in longer languages fit without wrapping
Closes : #1175
2023-05-26 10:35:25 -07:00
tyiu
0552c24108
Add mention parsing and fine-grained text selection on description in ProfileView
...
Changelog-Added: Add mention parsing and fine-grained text selection on description in ProfileView
Closes : #1172
2023-05-26 10:35:18 -07:00
Bryan Montz
61303f49ad
fix zap test
2023-05-26 07:32:18 -05:00
Bryan Montz
e10dc93233
add damus_donation to profile data model and update tests
2023-05-26 07:02:14 -05:00
Bryan Montz
ea73c5252d
Merge branch 'master' into user-cache
2023-05-26 06:46:47 -05:00
Bryan Montz
7e963c9025
synchronize access to network_pull_date_cache with a queue, writes with barrier flag
2023-05-26 06:38:20 -05:00
Bryan Montz
61ff7da2ae
make database write async at the call site and update tests
2023-05-25 09:09:50 -05:00
Bryan Montz
7259641e26
speed optimizations: cache network_pull_date in memory and ensure writes on background queue
2023-05-25 08:20:41 -05:00
gladiusKatana
f9a572faa2
dynamically set .isScrollEnabled in TextViewWrapper (true if UserSearch is present)
2023-05-24 20:41:03 -07:00
gladiusKatana
0f805d7ea7
override .isScrollEnabled in TextViewWrapper (ie, set to false at UITextView creation)
2023-05-24 20:41:03 -07:00
William Casarin
52ca33ef6a
script: fetch popular users
2023-05-24 18:26:18 -07:00
tyiu
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
Bryan Montz
812213ff2b
Add Damus splash screen
...
Changelog-Updated: Add Damus splash screen
2023-05-24 15:17:08 -07:00
transifex-integration[bot]
d6ecf14b55
Apply translations
...
Closes : #1134
2023-05-24 15:16:45 -07:00
William Casarin
47a74257c8
nwc debugging
2023-05-24 15:16:45 -07:00
William Casarin
1b161fefd0
nwc: make sure to support nostr+walletconnect scheme
...
not sure why we have 2 schemes
2023-05-15 12:54:42 -07:00
William Casarin
0b9a274e67
postbox: change initial retry_after from 2 to 10 seconds
2023-05-15 12:54:09 -07:00
William Casarin
2bbbb5db65
Fix a few bugs with donations
2023-05-15 12:53:36 -07:00
William Casarin
bffa42a13a
Supporter Badges
2023-05-15 11:57:37 -07:00
Bryan Montz
91113fbc6d
allow models to fetch profiles when they get stale
2023-05-15 08:33:35 -05:00
Bryan Montz
d58a1e0ba3
add ability to check the freshness of a PersistedProfile
2023-05-15 08:31:49 -05:00
Bryan Montz
3f7b0a4d6e
add network pull date to PersistedProfile model for staleness checking
2023-05-15 08:29:06 -05:00
Bryan Montz
bc315dd571
remove identical function
2023-05-15 07:33:49 -05:00
Bryan Montz
32431096f5
add tests for ProfileDatabase
2023-05-13 09:20:01 -05:00
Bryan Montz
6172347455
add ability to remove all cached Profiles in ProfileDatabase
2023-05-13 09:18:47 -05:00
Bryan Montz
31d327a085
add ability to retrieve count of cached Profiles
2023-05-13 09:18:23 -05:00
Bryan Montz
b5ae7df795
add ability to change ProfileDatabase's storage URL
2023-05-13 09:17:41 -05:00
Bryan Montz
3b0bb48dd4
integrate ProfileDatabase with existing Profiles caching class
2023-05-12 07:21:59 -05:00
Bryan Montz
4646f0e23c
add ProfileDatabase class to read and write profiles to disk
2023-05-12 07:21:25 -05:00
Bryan Montz
7027b7016c
add two-way translation between existing Profile class and new PersistedProfile CoreData class
2023-05-12 07:19:43 -05:00
Bryan Montz
76c57af548
add managed object class to match new Profile CoreData model
2023-05-12 07:18:12 -05:00
Bryan Montz
7983157c38
add CoreData model for Profile
2023-05-12 07:15:30 -05:00