Skip to content

Commit

Permalink
feat(messages) - user preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
rumblefrog committed Mar 21, 2021
1 parent caa5f7d commit 78a9984
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions messages/relay.proto
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,18 @@ message UserLeave {
common.Identity identity = 1;
}

// Sent by both clients & the server.
//
// The server will send this payload for each `UserJoin`.
//
// Clients will send this payload to update a user's preference,
// with the map being only the fields being changed.
message UserPreferences {
common.Identity identity = 1;

map<string, string> preferences = 2;
}

message TextMessage {
common.Intentions intentions = 1;

Expand Down

0 comments on commit 78a9984

Please sign in to comment.