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
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
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
William Casarin
ae2f7255a7
Mute hellthreads everywhere
...
Changelog-Fixed: Mute hellthreads everywhere
Fixes: https://damus.io/note1rn3ckl76myga6xcefr0le52d8czd0wqe8apguewqknyv7m55mmpq3rv3hv
2023-08-20 11:45:25 -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
9f01cab2be
simplify reduce_text_block
2023-08-08 17:09:45 -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
de58e52199
dms: move timestamp outside of bubble
2023-08-06 14:07:04 -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
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
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
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
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
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
William Casarin
88306d00a3
key: generate a FullKeypair when generating new keys
2023-08-01 21:53:19 -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
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
b40c595a7c
notify: switch over to new typesafe notifications
2023-07-30 11:02:44 -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
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
b5dd90b36a
notes: generalize event_is_reply a bit
...
so that it works with NdbNote as well
2023-07-24 12:39:55 -07:00
ab92f7b561
Update localization issues and export strings for translation
2023-07-19 10:08:30 -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
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
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
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
deaf5f042a
search: refactor appendUserTag to make logic more clear
...
ocd mostly
2023-07-17 10:25:09 -07:00