damus

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

commit b9d62e300b60e3455f1b5170261c3f9ac956960f
parent 127f1e07e340b6ace1419d2e68844b44c94a6bf0
Author: William Casarin <jb55@jb55.com>
Date:   Mon,  3 Apr 2023 10:21:11 -0700

Restore missing reply description on selected events

Changelog-Fixed: Restore missing reply description on selected events

Diffstat:
Mdamus.xcodeproj/project.pbxproj | 4++--
Mdamus/Views/Events/EmbeddedEventView.swift | 4++++
Mdamus/Views/Events/SelectedEventView.swift | 4++++
3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/damus.xcodeproj/project.pbxproj b/damus.xcodeproj/project.pbxproj @@ -1931,7 +1931,7 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = damus/damus.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 2; DEVELOPMENT_ASSET_PATHS = "\"damus/Preview Content\""; DEVELOPMENT_TEAM = XK7H4JAB3D; ENABLE_PREVIEWS = YES; @@ -1975,7 +1975,7 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = damus/damus.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 2; DEVELOPMENT_ASSET_PATHS = "\"damus/Preview Content\""; DEVELOPMENT_TEAM = XK7H4JAB3D; ENABLE_PREVIEWS = YES; diff --git a/damus/Views/Events/EmbeddedEventView.swift b/damus/Views/Events/EmbeddedEventView.swift @@ -30,6 +30,10 @@ struct EmbeddedEventView: View { .minimumScaleFactor(0.75) .lineLimit(1) + if event_is_reply(event, privkey: damus_state.keypair.privkey) { + ReplyDescription(event: event, profiles: damus_state.profiles) + } + EventBody(damus_state: damus_state, event: event, size: .small, options: [.truncate_content]) } } diff --git a/damus/Views/Events/SelectedEventView.swift b/damus/Views/Events/SelectedEventView.swift @@ -42,6 +42,10 @@ struct SelectedEventView: View { .minimumScaleFactor(0.75) .lineLimit(1) + if event_is_reply(event, privkey: damus.keypair.privkey) { + ReplyDescription(event: event, profiles: damus.profiles) + } + EventBody(damus_state: damus, event: event, size: size, options: []) if let mention = first_eref_mention(ev: event, privkey: damus.keypair.privkey) {