Implement proto::GetCollaborators request
This commit is contained in:
@@ -38,6 +38,8 @@ message Envelope {
|
||||
OpenWorktree open_worktree = 33;
|
||||
OpenWorktreeResponse open_worktree_response = 34;
|
||||
UnshareWorktree unshare_worktree = 35;
|
||||
GetCollaborators get_collaborators = 36;
|
||||
GetCollaboratorsResponse get_collaborators_response = 37;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -184,6 +186,12 @@ message GetChannelMessagesResponse {
|
||||
bool done = 2;
|
||||
}
|
||||
|
||||
message GetCollaborators {}
|
||||
|
||||
message GetCollaboratorsResponse {
|
||||
repeated Collaborator collaborators = 1;
|
||||
}
|
||||
|
||||
// Entities
|
||||
|
||||
message Peer {
|
||||
@@ -326,3 +334,14 @@ message ChannelMessage {
|
||||
uint64 sender_id = 4;
|
||||
Nonce nonce = 5;
|
||||
}
|
||||
|
||||
message Collaborator {
|
||||
uint64 user_id = 1;
|
||||
repeated CollaboratorWorktree worktrees = 2;
|
||||
bool is_online = 3;
|
||||
}
|
||||
|
||||
message CollaboratorWorktree {
|
||||
bool is_shared = 1;
|
||||
repeated uint64 participants = 2;
|
||||
}
|
||||
|
||||
@@ -131,6 +131,8 @@ messages!(
|
||||
GetChannelMessagesResponse,
|
||||
GetChannels,
|
||||
GetChannelsResponse,
|
||||
GetCollaborators,
|
||||
GetCollaboratorsResponse,
|
||||
GetUsers,
|
||||
GetUsersResponse,
|
||||
JoinChannel,
|
||||
@@ -168,6 +170,7 @@ request_messages!(
|
||||
(UnshareWorktree, Ack),
|
||||
(SendChannelMessage, SendChannelMessageResponse),
|
||||
(GetChannelMessages, GetChannelMessagesResponse),
|
||||
(GetCollaborators, GetCollaboratorsResponse),
|
||||
);
|
||||
|
||||
entity_messages!(
|
||||
|
||||
Reference in New Issue
Block a user