Browse Source

Resolve issue on Roboash not appearing in sidebar pfp

Also works fine with users with profile pic url set

Closes: #315
translations_damus-localizations-en-us-xcloc-localized-contents-en-us-xliff--master_es_419
Swift 2 years ago
committed by William Casarin
parent
commit
2f1063b49f
  1. 6
      damus/ContentView.swift

6
damus/ContentView.swift

@ -229,11 +229,7 @@ struct ContentView: View {
Button { Button {
isSideBarOpened.toggle() isSideBarOpened.toggle()
} label: { } label: {
if let picture = damus_state?.profiles.lookup(id: pubkey)?.picture { ProfilePicView(pubkey: damus_state!.pubkey, size: 32, highlight: .none, profiles: damus_state!.profiles)
ProfilePicView(pubkey: damus_state!.pubkey, size: 32, highlight: .none, profiles: damus_state!.profiles, picture: picture)
} else {
Image(systemName: "person.fill")
}
} }
} }

Loading…
Cancel
Save