fix formatting

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-03-07 12:36:26 -08:00
parent 65bd6a65f9
commit cec49c83bd
8 changed files with 100 additions and 52 deletions

View File

@@ -146,20 +146,28 @@ fn render_note_contents(
match block.blocktype() {
BlockType::MentionBech32 => match block.as_mention().unwrap() {
Mention::Profile(profile) => {
let act =
ui::Mention::new(note_context.ndb, note_context.img_cache, txn, profile.pubkey())
.show(ui)
.inner;
let act = ui::Mention::new(
note_context.ndb,
note_context.img_cache,
txn,
profile.pubkey(),
)
.show(ui)
.inner;
if act.is_some() {
note_action = act;
}
}
Mention::Pubkey(npub) => {
let act =
ui::Mention::new(note_context.ndb, note_context.img_cache, txn, npub.pubkey())
.show(ui)
.inner;
let act = ui::Mention::new(
note_context.ndb,
note_context.img_cache,
txn,
npub.pubkey(),
)
.show(ui)
.inner;
if act.is_some() {
note_action = act;
}