I can't tag Alex Gleason #693
Labels
No labels
Blocked
Bug
Documentation
Duplicate
Enhancement
Good first issue
Help wanted
Idea
In progress
Invalid
Major feature set
Packaging
Question
Soon
UI/UX
Upstream
You're dreamin'
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nostr/gossip#693
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Try it.
@bu5hm4nn
Also when I tag somebody, the preview of who will be tagged below the note does not include it. It is as if the raw draft content doesn't actually contain the nostr:npub... string. This breaks code post.rs from line 641-663
I'll look into the lines you mentioned.
But you're right, the draft content does not contain the string until you hit send or "Raw preview" because it would break the textedit cursor handling. Eventually we will have to write our own richtext editor. Here's me tagging Alex:
https://github.com/mikedilger/gossip/assets/3328670/4402e909-4f74-4a55-a2cd-6d238e808150
Ok, now I see which lines you mean. That basically got replaced by the blue text and hover popups for the new tagging interface. But it was intended to still show in raw preview. The bug is that it just references the wrong string. If you change line 644 from
NostrBech32::find_all_in_string(&app.draft_data.draft)toNostrBech32::find_all_in_string(&app.draft_data.raw)then it will work in raw-preview.Ok try to tag him by typing "Alex Gleason".
https://github.com/mikedilger/gossip/assets/3328670/be5671ce-a2fd-4594-a4a9-ec41260fc6ea
PS: you can traverse the tagging result list using the arrow keys or the mouse
alexgleason, it'salex_at_gleasonatorso typingalexglwon't bring him upI see 2 things we can improve:
alexglI think your work yesterday pretty much solves my issue, so closing.