William Casarin
bfad2ab42d
ndb/txn: make transactions failable
...
Since there may be situations where we close and re-open the database,
we need to make sure transactions fail when the database is not open.
Make NdbTxn an init?() constructor and check for ndb.closed. If it's
closed, then fail transaction construction.
This fixes crashes during high database activity when switching from
background to foreground and vice-versa.
Fixes: da2bdad18d ("nostrdb: close database when backgrounded")
2024-01-10 14:27:02 -08:00
William Casarin
69c7acea76
tests: add ndb support to tests
...
stops it from crashing
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
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
f9d21ef901
test: rename test_event to test_note
2023-07-31 05:38:19 -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
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
2f4e33fc9f
Fix localization issues and export strings for translation
2023-04-04 10:26:02 -04:00
ericholguin
0dd74fde7f
Improve reply view
...
Changelog-Changed: Improved look of reply view
2023-04-02 08:30:38 -07:00
William Casarin
8c37c8f008
Add some padding to the ReplyView
2023-03-27 12:16:39 -04:00
William Casarin
a65351154b
Make it much easier to tag users in replies and posts
...
Changelog-Changed: It's much easier to tag users in replies and posts
2023-03-17 11:33:15 -06:00
William Casarin
04bce34297
Don't show both realname and username if they are the same
...
Changelog-Changed: Don't show both realname and username if they are the same
2023-03-14 16:53:13 -06:00
William Casarin
77f5268336
Private Zaps
...
This adds private zaps, which have messages and authors encrypted to
the target. Keys are deterministically generated so that both the
receiver and sender can decrypt.
Changelog-Added: Private Zaps
2023-03-01 09:56:25 -08:00
William Casarin
7bcc345038
Fix build
2023-01-28 15:54:52 -08:00
William Casarin
bf0f879d66
revert dubious change
2023-01-28 15:53:04 -08:00
Swift
b6b6d033a8
User tagging and autocompletion
...
Co-authored-by: William Casarin <jb55@jb55.com >
Changelog-Added: User tagging and autocompletion in posts
Closes : #347
Fixes : #411 , #63
2023-01-28 15:43:45 -08:00
William Casarin
5edb7df5c4
Mute events in threads
...
Changlog-Added: Mute events in threads
2023-01-27 12:11:57 -08:00
William Casarin
8df5bf04ae
refactor: Break EventView into 3 separate views
...
SelectedEventView
EmbeddedEventView
EventView
2023-01-23 12:13:58 -08:00
Joel Klabo
2a9ddd10c8
Choose Participants on a Thread Reply
...
Closes : #345
Changelog-Added: Add the ability to choose participants when replying
2023-01-22 10:10:13 -08:00
887eb902bf
Add comments to localized strings
2023-01-08 21:57:28 -05:00
Joel Klabo
64bb28e017
Make Event in Reply View Scrollable
...
Closes : #248
Changelog-Fixed: Make reply view scrollable
2023-01-05 09:20:49 -08:00
William Casarin
d7b5669ecf
support kind 42 chat messages
...
Changelog-Added: Support kind 42 chat messages (ArcadeCity).
Signed-off-by: William Casarin <jb55@jb55.com >
2022-08-19 07:21:18 -07:00
William Casarin
22cad4b072
wot: show friend icons is some views
...
easier to detect if someone is trying to fake us out
Changelog-Added: Friend icons next to names on some views. Check is friend. Arrows are friend-of-friends
Signed-off-by: William Casarin <jb55@jb55.com >
2022-08-09 16:48:47 -07:00
William Casarin
e104de6431
fix many small bugs
...
Signed-off-by: William Casarin <jb55@jb55.com >
2022-06-09 11:40:41 -07:00
William Casarin
6ac4214be7
insert sort, profile updates revamp
...
Signed-off-by: William Casarin <jb55@jb55.com >
2022-05-09 10:33:03 -07:00
William Casarin
f42bc2e91e
likes, mention parsing, lots of stuff
...
Signed-off-by: William Casarin <jb55@jb55.com >
2022-05-04 16:26:10 -07:00
William Casarin
d574e572d4
old style navigation
...
Signed-off-by: William Casarin <jb55@jb55.com >
2022-04-30 11:46:56 -07:00
William Casarin
b72047237a
don't collapse if we don't need to
...
Signed-off-by: William Casarin <jb55@jb55.com >
2022-04-18 14:31:36 -07:00
William Casarin
4ff6719961
show who we're replying to
...
Signed-off-by: William Casarin <jb55@jb55.com >
2022-04-17 15:12:26 -07:00
William Casarin
0ac3218952
fix reply ids
...
Signed-off-by: William Casarin <jb55@jb55.com >
2022-04-17 11:40:48 -07:00
William Casarin
700a0e2625
replying works
...
Signed-off-by: William Casarin <jb55@jb55.com >
2022-04-17 08:49:02 -07:00