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:
parent
7bec1556cb
commit
eb0f7e16a9
25 changed files with 405 additions and 99 deletions
|
@ -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)
|
||||
|
|
|
@ -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) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue