1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-3409 Primitives | Reset layout conflict (#2217)

This commit is contained in:
Konstantin Ivanov 2025-04-01 10:48:43 +02:00 committed by GitHub
parent 7bec1556cb
commit eb0f7e16a9
Signed by: github
GPG key ID: B5690EEEBB952194
25 changed files with 405 additions and 99 deletions

View file

@ -420,10 +420,10 @@ class BlockMiddleware(
override suspend fun deleteRelationFromObject(
ctx: Id,
relation: Id
relations: List<Key>
): Payload = middleware.objectRelationDelete(
ctx = ctx,
relation = relation
relations = relations
)
override suspend fun debugSpace(space: SpaceId): String = middleware.debugSpaceSummary(space)

View file

@ -1171,10 +1171,10 @@ class Middleware @Inject constructor(
}
@Throws(Exception::class)
fun objectRelationDelete(ctx: Id, relation: Key): Payload {
fun objectRelationDelete(ctx: Id, relations: List<Key>): Payload {
val request = Rpc.ObjectRelation.Delete.Request(
contextId = ctx,
relationKeys = listOf(relation)
relationKeys = relations
)
logRequestIfDebug(request)
val (response, time) = measureTimedValue { service.objectRelationDelete(request) }