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

DROID-2145 Objects | Fix | Sync pinned types and app shortcut actions (#795)

This commit is contained in:
Evgenii Kozlov 2024-01-24 13:54:36 +01:00 committed by GitHub
parent 47b46954ed
commit ecbc0886c4
Signed by: github
GPG key ID: B5690EEEBB952194
5 changed files with 46 additions and 83 deletions

View file

@ -208,7 +208,7 @@ class DefaultUserSettingsCache(
.getOrDefault(key = space.id, defaultValue = SpacePreference())
val updated = givenSpacePreference.copy(
pinnedObjectTypeKeys = types.map { type -> type.id }
pinnedObjectTypeIds = types.map { type -> type.id }
)
val result = buildMap {
@ -228,7 +228,7 @@ class DefaultUserSettingsCache(
.map { preferences ->
preferences
.preferences[space.id]
?.pinnedObjectTypeKeys?.map { id -> TypeId(id) } ?: emptyList()
?.pinnedObjectTypeIds?.map { id -> TypeId(id) } ?: emptyList()
}
}

View file

@ -10,5 +10,5 @@ message SpacePreferences {
message SpacePreference {
optional string defaultObjectTypeKey = 1;
repeated string pinnedObjectTypeKeys = 2;
repeated string pinnedObjectTypeIds = 2;
}