From 78a9984fc54c05b75e6dd5fab05b8a070dc4c90d Mon Sep 17 00:00:00 2001 From: rumblefrog Date: Sun, 21 Mar 2021 04:42:42 -0400 Subject: [PATCH] feat(messages) - user preferences --- messages/relay.proto | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/messages/relay.proto b/messages/relay.proto index 30ef749..44220a7 100644 --- a/messages/relay.proto +++ b/messages/relay.proto @@ -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 preferences = 2; +} + message TextMessage { common.Intentions intentions = 1;