damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | LICENSE

commit cfcd4128ec0359ee16453f33ad9ba73c37104442
parent 151c79dd983df11101af3144489c8dd634a4ed68
Author: William Casarin <jb55@jb55.com>
Date:   Sun,  8 May 2022 10:51:59 -0700

fix content popping

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mdamus/Views/ChatView.swift | 2+-
Mdamus/Views/EventView.swift | 2+-
Mdamus/Views/NoteContentView.swift | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/damus/Views/ChatView.swift b/damus/Views/ChatView.swift @@ -128,7 +128,7 @@ struct ChatView: View { } } - NoteContentView(event: event, profiles: profiles) + NoteContentView(event: event, profiles: profiles, content: event.content) if is_active || next_ev == nil || next_ev!.pubkey != event.pubkey { EventActionBar(event: event, diff --git a/damus/Views/EventView.swift b/damus/Views/EventView.swift @@ -74,7 +74,7 @@ struct EventView: View { .frame(maxWidth: .infinity, alignment: .leading) } - NoteContentView(event: event, profiles: profiles) + NoteContentView(event: event, profiles: profiles, content: event.content) .frame(maxWidth: .infinity, alignment: .leading) .textSelection(.enabled) diff --git a/damus/Views/NoteContentView.swift b/damus/Views/NoteContentView.swift @@ -23,7 +23,7 @@ struct NoteContentView: View { let event: NostrEvent let profiles: Profiles - @State var content: String = "" + @State var content: String func MainContent() -> some View { let md_opts: AttributedString.MarkdownParsingOptions =