don't show zap button if no wallet

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-05-07 14:36:56 -04:00
parent 86d2a9e2e7
commit 54c0fdb563
10 changed files with 84 additions and 58 deletions

View File

@@ -399,10 +399,15 @@ impl<'a, 'd> TimelineTabView<'a, 'd> {
};
if !muted {
let zapping_acc = self
.cur_acc
.as_ref()
.filter(|_| self.note_context.current_account_has_wallet);
notedeck_ui::padding(8.0, ui, |ui| {
let resp = NoteView::new(
self.note_context,
self.cur_acc,
zapping_acc,
&note,
self.note_options,
self.jobs,