Skip to content

Commit

Permalink
feat: add mutual friends in friendship social proto (#158)
Browse files Browse the repository at this point in the history
* feat: add mutual friends in friendship social proto

* Change var name

* Add BadRequestError

* Rename payload
  • Loading branch information
agusaldasoro authored Jul 14, 2023
1 parent 63c469d commit 964ab88
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions proto/decentraland/social/friendships/friendships.proto
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ message UpdateFriendshipPayload {
optional Payload auth_token = 2;
}

message MutualFriendsPayload {
User user = 1;
// For internal use only, subject to change.
optional Payload auth_token = 2;
}

message Payload {
// For internal use only, subject to change.
optional string synapse_token = 1;
Expand Down Expand Up @@ -106,6 +112,7 @@ message UsersResponse {
UnauthorizedError unauthorized_error = 3;
ForbiddenError forbidden_error = 4;
TooManyRequestsError too_many_requests_error = 5;
BadRequestError bad_request_error = 6;
}
}

Expand Down Expand Up @@ -144,6 +151,9 @@ service FriendshipsService {
// Get the list of friends for the authenticated user
rpc GetFriends(Payload) returns (stream UsersResponse) {}

// Get the list of mutual friends between the authenticated user and the one in the parameter
rpc GetMutualFriends(MutualFriendsPayload) returns (stream UsersResponse) {}

// Get the list of request events for the authenticated user
rpc GetRequestEvents(Payload) returns (RequestEventsResponse) {}

Expand Down

0 comments on commit 964ab88

Please sign in to comment.