address PR comments

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2024-09-18 11:07:11 -04:00
parent 06336a14ef
commit 6e77d20197
7 changed files with 36 additions and 72 deletions

View File

@@ -190,16 +190,9 @@ pub fn postbox_view<'a>(
.ui(&txn, ui);
if let Some(action) = response.action {
PostActionExecutor::execute(
&key,
&action,
pool,
drafts,
|np, seckey| np.to_note(seckey),
|drafts| {
drafts.compose_mut().clear();
},
);
PostActionExecutor::execute(key, &action, pool, drafts.compose_mut(), |np, seckey| {
np.to_note(seckey)
});
}
}