profile: allow post button on every profile and prefill user tag

Changelog-Added: Add post button to profile pages
This commit is contained in:
William Casarin
2023-06-28 17:40:27 +02:00
parent c8f18958a2
commit abcff3b928
3 changed files with 39 additions and 14 deletions

View File

@@ -523,9 +523,9 @@ struct ProfileView: View {
QRCodeView(damus_state: damus_state, pubkey: profile.pubkey)
}
if profile.pubkey == damus_state.pubkey && damus_state.is_privkey_user {
if damus_state.is_privkey_user {
PostButtonContainer(is_left_handed: damus_state.settings.left_handed) {
notify(.compose, PostAction.posting)
notify(.compose, PostAction.posting(.user(profile.pubkey)))
}
}
}