Rename fun

This commit is contained in:
Benoit Marty 2023-01-05 09:48:25 +01:00
parent 437b93cc18
commit 7e26c4b6f2
3 changed files with 3 additions and 3 deletions

View File

@ -427,7 +427,7 @@ internal class DeviceListManager @Inject constructor(
) )
} }
cryptoStore.storeUserDataToStore(userDataToStore) cryptoStore.storeData(userDataToStore)
// Update devices trust for these users // Update devices trust for these users
// dispatchDeviceChange(downloadUsers) // dispatchDeviceChange(downloadUsers)

View File

@ -601,5 +601,5 @@ internal interface IMXCryptoStore {
/** /**
* Store a bunch of data related to the users. @See [UserDataToStore]. * Store a bunch of data related to the users. @See [UserDataToStore].
*/ */
fun storeUserDataToStore(userDataToStore: UserDataToStore) fun storeData(userDataToStore: UserDataToStore)
} }

View File

@ -1852,7 +1852,7 @@ internal class RealmCryptoStore @Inject constructor(
} }
} }
override fun storeUserDataToStore(userDataToStore: UserDataToStore) { override fun storeData(userDataToStore: UserDataToStore) {
doRealmTransaction("storeUserDataToStore", realmConfiguration) { realm -> doRealmTransaction("storeUserDataToStore", realmConfiguration) { realm ->
userDataToStore.userDevices.forEach { userDataToStore.userDevices.forEach {
storeUserDevices(realm, it.key, it.value) storeUserDevices(realm, it.key, it.value)