Skip to content

Commit

Permalink
feat: add mutual friends in friendship social proto
Browse files Browse the repository at this point in the history
  • Loading branch information
agusaldasoro committed Jul 10, 2023
1 parent f7db98f commit df99656
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 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 @@ -144,6 +150,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 df99656

Please sign in to comment.