From b566ba30e0cd719959b8d667ea706884eeba1875 Mon Sep 17 00:00:00 2001 From: Konstantin Ivanov <54908981+konstantiniiv@users.noreply.github.com> Date: Mon, 10 Mar 2025 13:46:15 +0100 Subject: [PATCH] DROID-3456 Protocol | Integrate 0.40.0-rc6 (#2141) --- gradle/libs.versions.toml | 2 +- protocol/src/main/proto/commands.proto | 23 +++++++++++++++++++++++ protocol/src/main/proto/events.proto | 6 ++++++ 3 files changed, 30 insertions(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 374b9f1465..cda655518c 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,5 +1,5 @@ [versions] -middlewareVersion = "v0.40.0-rc5" +middlewareVersion = "v0.40.0-rc6" kotlinVersion = '2.0.21' kspVersion = "2.0.21-1.0.25" diff --git a/protocol/src/main/proto/commands.proto b/protocol/src/main/proto/commands.proto index 09f77d872b..c25406f86e 100644 --- a/protocol/src/main/proto/commands.proto +++ b/protocol/src/main/proto/commands.proto @@ -7950,6 +7950,7 @@ message Rpc { message Request { string chatObjectId = 1; // Identifier for the chat int32 limit = 2; // Number of max last messages to return and subscribe + string subId = 3; } message Response { @@ -7974,6 +7975,7 @@ message Rpc { message Unsubscribe { message Request { string chatObjectId = 1; // Identifier for the chat + string subId = 2; } message Response { Error error = 1; @@ -7991,6 +7993,27 @@ message Rpc { } } } + + message SubscribeToMessagePreviews { + message Request {} + + message Response { + Error error = 1; + string subId = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } } } diff --git a/protocol/src/main/proto/events.proto b/protocol/src/main/proto/events.proto index a5b5820be8..7ec5066e58 100644 --- a/protocol/src/main/proto/events.proto +++ b/protocol/src/main/proto/events.proto @@ -124,18 +124,24 @@ message Event { message Add { string id = 1; string orderId = 2; + string afterOrderId = 6; model.ChatMessage message = 3; + repeated string subIds = 4; + repeated google.protobuf.Struct dependencies = 5; } message Delete { string id = 1; + repeated string subIds = 2; } message Update { string id = 1; model.ChatMessage message = 2; + repeated string subIds = 3; } message UpdateReactions { string id = 1; model.ChatMessage.Reactions reactions = 2; + repeated string subIds = 3; } }