From 01150155ab0cf500d8d8d604f337b8c8b7a5d18d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20D=E2=80=99Aquino?= Date: Fri, 31 Oct 2025 10:42:09 -0700 Subject: [PATCH] Add missing ProfileObserver to EventProfileName view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was noticed that occasionally the profile name at the event view would not load to the user's display name. The issue was fixed by adding a missing profile observer. Issue introduced after our last public release, no need for changelog entries. Changelog-None Signed-off-by: Daniel D’Aquino --- damus/Features/Profile/Views/EventProfileName.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/damus/Features/Profile/Views/EventProfileName.swift b/damus/Features/Profile/Views/EventProfileName.swift index 5594ee5e..0d017cec 100644 --- a/damus/Features/Profile/Views/EventProfileName.swift +++ b/damus/Features/Profile/Views/EventProfileName.swift @@ -17,6 +17,7 @@ struct EventProfileName: View { @State var nip05: NIP05? @State var donation: Int? @State var purple_account: DamusPurple.Account? + @StateObject private var profileObserver: ProfileObserver let size: EventViewKind @@ -27,6 +28,7 @@ struct EventProfileName: View { let donation = damus.ndb.lookup_profile(pubkey)?.map({ p in p?.profile?.damus_donation }).value self._donation = State(wrappedValue: donation) self.purple_account = nil + self._profileObserver = StateObject.init(wrappedValue: ProfileObserver(pubkey: pubkey, damusState: damus)) } var friend_type: FriendType? {