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
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
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
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
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
William Casarin
b556257edd
util: add structured logger
2023-08-03 12:17:56 -07:00
William Casarin
6e6c1eb7b6
ndb: make AsciiCharacter a CustomStringConvertible
2023-08-01 21:53:19 -07:00