Fix PostView initial string to skip mentioning self when on own profile

Changelog-Fixed: Fix PostView initial string to skip mentioning self when on own profile
Signed-off-by: Terry Yiu <git@tyiu.xyz>
Reviewed-by: William Casarin <jb55@jb55.com>
This commit is contained in:
2023-07-10 22:56:37 -04:00
committed by William Casarin
parent b8ec3493dc
commit 4c774f2dda

View File

@@ -190,7 +190,8 @@ struct PostView: View {
func initialString() -> NSMutableAttributedString {
guard case .posting(let target) = action,
case .user(let pubkey) = target else {
case .user(let pubkey) = target,
damus_state.pubkey != pubkey else {
return .init(string: "")
}