From a3207f18b742768c73210fdcb0ed6a7c6cdb92d9 Mon Sep 17 00:00:00 2001 From: Evgenii Kozlov Date: Fri, 9 May 2025 23:11:01 +0200 Subject: [PATCH] DROID-3650 fixes --- gradle/libs.versions.toml | 2 +- protocol/src/main/proto/commands.proto | 18 +++++++++++++++--- protocol/src/main/proto/models.proto | 4 ++++ 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index fac531403a..f692a853db 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,5 +1,5 @@ [versions] -middlewareVersion = "v0.41.0-rc1" +middlewareVersion = "v0.41.0-rc3" 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 522875cfb6..bc1c7fe82b 100644 --- a/protocol/src/main/proto/commands.proto +++ b/protocol/src/main/proto/commands.proto @@ -8297,11 +8297,21 @@ message Rpc { } message SubscribeToMessagePreviews { - message Request {} + message Request { + string subId = 1; + } message Response { Error error = 1; - string subId = 2; + repeated ChatPreview previews = 2; + + message ChatPreview { + string spaceId = 1; + string chatObjectId = 2; + model.ChatMessage message = 3; + model.ChatState state = 4; + repeated google.protobuf.Struct dependencies = 5; + } message Error { Code code = 1; @@ -8318,7 +8328,9 @@ message Rpc { } message UnsubscribeFromMessagePreviews { - message Request {} + message Request { + string subId = 1; + } message Response { Error error = 1; diff --git a/protocol/src/main/proto/models.proto b/protocol/src/main/proto/models.proto index 69ab599f08..92874651fb 100644 --- a/protocol/src/main/proto/models.proto +++ b/protocol/src/main/proto/models.proto @@ -1367,7 +1367,11 @@ message MembershipTierData { // Android platform-specific data: string androidProductId = 17; string androidManageUrl = 18; + + // "limited offer" or somehing like that + string offer = 19; } + enum DeviceNetworkType { WIFI = 0; CELLULAR = 1;