William Casarin
29fa4ecf2e
build: fix invalid function name
2023-11-13 10:31:28 -08:00
William Casarin
518fdffce9
ndb: potential fix for a crash in some nostrdb queries
2023-11-13 10:31:28 -08:00
William Casarin
289e051202
v1.6 (26)
2023-11-13 10:31:28 -08:00
William Casarin
cc385d3c3f
nostrdb: add migration to fix local japanese profile names
2023-11-02 14:17:17 +09:00
William Casarin
6863e74c0f
nostrdb: fix japanese profile names not loading
...
update flatcc, including the patch that fixes japanese usenames
Changelog-Fixed: Fix japanese profiles names not loading
2023-11-02 10:20:40 +09:00
William Casarin
280d889f25
v1.6 (25) changelog
2023-10-31 10:27:55 +09:00
William Casarin
d1d830fca1
v1.6 (25)
2023-10-31 10:26:12 +09:00
William Casarin
7710839261
noting: users are now notified when you quote repost them
...
Changelog-Changed: Users are now notified when you quote repost them
2023-10-27 09:02:05 +08:00
William Casarin
4389cc2128
load_profiles: add context for debugging
...
This is useful to see where the load_profiles request is coming from
We may need to switch to a central dispatch for profile loading, I
suspect there is a lot of redundancy between requests.
2023-10-24 13:02:41 +08:00
William Casarin
76508dbbfd
perf: don't continuously attempt to fetch old profiles
...
Changelog-Changed: Save bandwidth by only fetching new profiles after a certain amount of time
2023-10-24 13:02:41 +08:00
William Casarin
a324523b85
ndb: new methods for profile fetched_at
...
This adds a few methods to Ndb for reading and writing fetched_at stats.
These are a way of tracking when we last tried to fetch profiles so that
we don't need to keep fetching them.
2023-10-23 10:44:54 +08:00
William Casarin
1cf898e0b2
ndb: update nostrdb
...
This includes the new profile fetched_at logic and reaction stats.
When receiving new profiles, nostrdb will record when it was last
received in a new database. This database is a mapping from Pubkey to
timestamp.
You can manually read/write to this table using:
ndb_read_last_profile_fetch
ndb_write_last_profile_fetch
This patch also includes the new reaction counting metadata table. It is
not used yet (but reactions are still counted!)
Changelog-Added: Added reaction counters to nostrdb
Changelog-Added: Record when profile is last fetched in nostrdb
2023-10-23 10:40:11 +08:00
William Casarin
502ceee6d4
ndb: update bindings
...
This adds new bindings from nostrdb related to tracking reaction stats.
We aren't using this yet but it's a part of the latest nostrdb update.
2023-10-23 10:39:27 +08:00
William Casarin
4f628ec733
Merge remote-tracking branch 'github/translations'
2023-10-23 09:18:45 +08:00
William Casarin
29915159db
v1.6 (24) changelog
2023-10-22 14:27:56 +08:00
William Casarin
2b102671e5
smol fix
2023-10-22 10:41:36 +08:00
William Casarin
4ed79ff3c3
ui: reduce size of event menu hitbox
...
Changelog-Fixed: Reduce size of event menu hitbox
2023-10-22 10:40:29 +08:00
William Casarin
17331301da
Clarified camera and mic usage strings
...
Fixes: https://github.com/damus-io/damus/issues/1628
2023-10-22 10:25:03 +08:00
William Casarin
7a6a6dffbc
camera: actually add CameraPreview to project
2023-10-07 17:00:25 -07:00
William Casarin
1fabd4c0fe
v1.6 (23) changelog
2023-10-06 12:57:54 -07:00
William Casarin
f90a485b5e
v1.6 (23) final
2023-10-06 12:56:31 -07:00
William Casarin
b1c7ef9bd9
Fix profiles not updating
...
Timestamped IDs were not being initialized properly when writing profile
indices. This means that every profile was indexed with timestamp 0.
derp. Fix this!
Changelog-Fixed: Fix profiles not updating
2023-10-06 10:42:17 -07:00
William Casarin
7ecb9aad62
nostrdb: only process sent note events, not subs
2023-10-06 10:42:17 -07:00
William Casarin
d0daa9fafa
nostrdb: add last fetched records for profiles
2023-10-06 10:42:17 -07:00
William Casarin
76f3cd4edc
21
2023-10-06 10:42:17 -07:00
William Casarin
5fa138d050
v1.6 (20) changelog
2023-10-04 14:55:47 -07:00
William Casarin
deb75df54e
v1.6 (20)
2023-10-04 14:54:48 -07: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
William Casarin
9f15688699
v1.6 (19)
2023-09-24 11:33:40 -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
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
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
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
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
William Casarin
4263b9690f
deps: add tldextract
...
This is needed for the new relay view
2023-09-10 09:52:54 -07:00
William Casarin
42234b1cf3
remove timeline render logs
2023-09-07 10:33:37 -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
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
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
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