Skip to content

Commit

Permalink
Merge pull request #957 from lens-protocol/T-20971/missing-field
Browse files Browse the repository at this point in the history
fix: adds ProfileOperations.hasBlockedMe field
  • Loading branch information
cesarenaldi authored Jun 27, 2024
2 parents 5591090 + 7f080c1 commit 7730a3a
Show file tree
Hide file tree
Showing 19 changed files with 1,700 additions and 435 deletions.
9 changes: 9 additions & 0 deletions .changeset/wet-bottles-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@lens-protocol/api-bindings": patch
"@lens-protocol/client": patch
"@lens-protocol/react": patch
"@lens-protocol/react-native": patch
"@lens-protocol/react-web": patch
---

fix: adds `ProfileOperations.hasBlockedMe` field.
3 changes: 2 additions & 1 deletion packages/api-bindings/src/lens/__helpers__/fragments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ function mockProfileOperationsFragment(
overrides?: Partial<gql.ProfileOperations>,
): gql.ProfileOperations {
return {
id: mockProfileId(),
canBlock: false,
canUnblock: false,
canFollow: gql.TriStateValue.Unknown,
canUnfollow: false,
hasBlockedMe: mockOptimisticStatusResultFragment(),
id: mockProfileId(),
isBlockedByMe: mockOptimisticStatusResultFragment(),
isFollowedByMe: mockOptimisticStatusResultFragment(),
isFollowingMe: mockOptimisticStatusResultFragment(),
Expand Down
11 changes: 7 additions & 4 deletions packages/api-bindings/src/lens/graphql/fragments.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,14 @@ fragment ProfileStats on ProfileStats {

fragment ProfileOperations on ProfileOperations {
__typename
canBlock
canUnblock
canFollow
canUnfollow
id
hasBlockedMe {
...OptimisticStatusResult
}
isBlockedByMe {
...OptimisticStatusResult
}
Expand All @@ -239,10 +246,6 @@ fragment ProfileOperations on ProfileOperations {
isFollowingMe {
...OptimisticStatusResult
}
canBlock
canUnblock
canFollow
canUnfollow
}

fragment ProfileOnchainIdentity on ProfileOnchainIdentity {
Expand Down
Loading

0 comments on commit 7730a3a

Please sign in to comment.