Broadcast active view to followers
This commit is contained in:
parent
3d81eb9ddf
commit
7d7e10598a
5 changed files with 182 additions and 48 deletions
|
@ -544,16 +544,33 @@ message Follow {
|
|||
}
|
||||
|
||||
message FollowResponse {
|
||||
optional uint64 current_view_id = 1;
|
||||
optional uint64 active_view_id = 1;
|
||||
repeated View views = 2;
|
||||
}
|
||||
|
||||
message UpdateFollowers {
|
||||
uint64 project_id = 1;
|
||||
uint64 current_view_id = 2;
|
||||
repeated View created_views = 3;
|
||||
repeated ViewUpdate updated_views = 4;
|
||||
repeated uint32 follower_ids = 5;
|
||||
repeated uint32 follower_ids = 2;
|
||||
oneof variant {
|
||||
UpdateActiveView update_active_view = 3;
|
||||
View create_view = 4;
|
||||
UpdateView update_view = 5;
|
||||
}
|
||||
|
||||
message UpdateActiveView {
|
||||
optional uint64 id = 1;
|
||||
}
|
||||
|
||||
message UpdateView {
|
||||
uint64 id = 1;
|
||||
oneof variant {
|
||||
Editor editor = 2;
|
||||
}
|
||||
|
||||
message Editor {
|
||||
Selection newest_selection = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
message Unfollow {
|
||||
|
@ -575,17 +592,6 @@ message View {
|
|||
}
|
||||
}
|
||||
|
||||
message ViewUpdate {
|
||||
uint64 id = 1;
|
||||
oneof variant {
|
||||
Editor editor = 2;
|
||||
}
|
||||
|
||||
message Editor {
|
||||
Selection newest_selection = 1;
|
||||
}
|
||||
}
|
||||
|
||||
message Collaborator {
|
||||
uint32 peer_id = 1;
|
||||
uint32 replica_id = 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue