Populate the user data of worktree collaborators

This will make it possible for us to render their avatars. Previously we only had the user ids. During rendering, everything needs to be available synchronously. So now, whenever collaborators are added, we perform the async I/O to fetch their user data prior to adding them to the worktree.
This commit is contained in:
Nathan Sobo 2021-11-26 20:35:50 -07:00
parent 9930e92412
commit b307a7e91d
5 changed files with 145 additions and 114 deletions

View file

@ -121,7 +121,7 @@ macro_rules! entity_messages {
messages!(
Ack,
AddPeer,
AddCollaborator,
BufferSaved,
ChannelMessageSent,
CloseBuffer,
@ -145,7 +145,7 @@ messages!(
OpenWorktree,
OpenWorktreeResponse,
Ping,
RemovePeer,
RemoveCollaborator,
SaveBuffer,
SendChannelMessage,
SendChannelMessageResponse,
@ -174,13 +174,13 @@ request_messages!(
entity_messages!(
worktree_id,
AddPeer,
AddCollaborator,
BufferSaved,
CloseBuffer,
CloseWorktree,
OpenBuffer,
JoinWorktree,
RemovePeer,
RemoveCollaborator,
SaveBuffer,
UnshareWorktree,
UpdateBuffer,