From e6b876f4fee4fa633742d1da12383d2c2d823d4d Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Fri, 25 Mar 2022 22:29:26 -0700 Subject: [PATCH] Add message locations --- mesh.proto | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/mesh.proto b/mesh.proto index 7c10199..8e6a4ec 100644 --- a/mesh.proto +++ b/mesh.proto @@ -706,7 +706,45 @@ message Data { * Defaults to false. If true, then what is in the payload should be treated as an emoji like giving * a message a heart or poop emoji. */ - bool is_tapback = 8; + fixed32 emoji = 8; + + /* + * Location structure + */ + Location location = 9; + +} + +/* + * Location of a waypoint to associate with a message + */ +message Location { + + /* + * Id of the location + */ + uint32 id = 1; + + /* + * latitude_i + */ + sfixed32 latitude_i = 2; + + /* + * longitude_i + */ + sfixed32 longitude_i = 3; + + /* + * Time the location is to expire (epoch) + */ + uint32 expire = 4; + + /* + * If true, only allow the original sender to update the location. + */ + bool locked = 5; + } /*