Resolve issue on Roboash not appearing in sidebar pfp

Also works fine with users with profile pic url set

Closes: #315
This commit is contained in:
Swift authored and William Casarin committed 2023-01-14 09:00:59 -08:00
1 parent 73110952e5
commit 2f1063b49f
1 file changed
+1 -5
+1 -5
View File
@@ -229,11 +229,7 @@ struct ContentView: View {
Button {
isSideBarOpened.toggle()
} label: {
if let picture = damus_state?.profiles.lookup(id: pubkey)?.picture {
ProfilePicView(pubkey: damus_state!.pubkey, size: 32, highlight: .none, profiles: damus_state!.profiles, picture: picture)
} else {
Image(systemName: "person.fill")
}
ProfilePicView(pubkey: damus_state!.pubkey, size: 32, highlight: .none, profiles: damus_state!.profiles)
}
}