Use Any instead of JsonDict so users won't loose ignored users

This commit is contained in:
ganfra 2020-07-21 10:39:45 +02:00
parent fb247f8bea
commit e5596f6a97

View file

@ -18,7 +18,6 @@ package im.vector.matrix.android.internal.session.sync.model.accountdata
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
import im.vector.matrix.android.api.util.JsonDict
import im.vector.matrix.android.api.util.emptyJsonDict
@JsonClass(generateAdapter = true)
@ -26,7 +25,7 @@ internal data class IgnoredUsersContent(
/**
* Required. The map of users to ignore. UserId -> empty object for future enhancement
*/
@Json(name = "ignored_users") val ignoredUsers: Map<String, JsonDict>
@Json(name = "ignored_users") val ignoredUsers: Map<String, Any>
) {
companion object {