Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
middlewareVersion = "v0.45.0-rc02"
middlewareVersion = "v0.45.0"
kotlinVersion = '2.0.21'
kspVersion = "2.0.21-1.0.25"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,8 @@ fun SpaceCreationUseCase.toMiddlewareModel(): Rpc.Object.ImportUseCase.Request.U
SpaceCreationUseCase.DATA_SPACE_MOBILE -> Rpc.Object.ImportUseCase.Request.UseCase.DATA_SPACE_MOBILE
}

fun NotificationState.toMiddlewareModel(): Rpc.PushNotification.SetSpaceMode.Mode = when (this) {
NotificationState.ALL -> Rpc.PushNotification.SetSpaceMode.Mode.All
NotificationState.MENTIONS -> Rpc.PushNotification.SetSpaceMode.Mode.Mentions
NotificationState.DISABLE -> Rpc.PushNotification.SetSpaceMode.Mode.Nothing
fun NotificationState.toMiddlewareModel(): Rpc.PushNotification.Mode = when (this) {
NotificationState.ALL -> Rpc.PushNotification.Mode.All
NotificationState.MENTIONS -> Rpc.PushNotification.Mode.Mentions
NotificationState.DISABLE -> Rpc.PushNotification.Mode.Nothing
}
40 changes: 10 additions & 30 deletions protocol/src/main/proto/commands.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8677,6 +8677,13 @@ message Rpc {

}
message PushNotification {

enum Mode {
All = 0;
Mentions = 1;
Nothing = 2;
}

message RegisterToken {
message Request {
string token = 1;
Expand Down Expand Up @@ -8706,34 +8713,6 @@ message Rpc {
Mode mode = 2;
}

enum Mode {
All = 0;
Mentions = 1;
Nothing = 2;
Custom = 3;
}

message Response {
Error error = 1;
ResponseEvent event = 2;
message Error {
Code code = 1;
string description = 2;

enum Code {
NULL = 0;
UNKNOWN_ERROR = 1;
BAD_INPUT = 2;
}
}
}
}

message AddMuteIds {
message Request {
string spaceId = 1;
repeated string chatIds = 2;
}
message Response {
Error error = 1;
ResponseEvent event = 2;
Expand All @@ -8750,10 +8729,11 @@ message Rpc {
}
}

message AddMentionIds {
message SetForceModeIds {
message Request {
string spaceId = 1;
repeated string chatIds = 2;
Mode mode = 3;
}
message Response {
Error error = 1;
Expand All @@ -8771,7 +8751,7 @@ message Rpc {
}
}

message AddAllIds {
message ResetIds {
message Request {
string spaceId = 1;
repeated string chatIds = 2;
Expand Down
Loading