Fix latest small bugs

This commit is contained in:
Benoit Marty 2021-12-31 15:34:42 +01:00
parent a7b72ed39d
commit 6d8b5db18e
1 changed files with 8 additions and 4 deletions

View File

@ -186,10 +186,14 @@ class RoomMemberProfileViewModel @AssistedInject constructor(
newOverrideColorSpecs.remove(initialState.userId)
}
viewModelScope.launch {
session.accountDataService().updateUserAccountData(
type = UserAccountDataTypes.TYPE_OVERRIDE_COLORS,
content = newOverrideColorSpecs
)
try {
session.accountDataService().updateUserAccountData(
type = UserAccountDataTypes.TYPE_OVERRIDE_COLORS,
content = newOverrideColorSpecs
)
} catch (failure: Throwable) {
_viewEvents.post(RoomMemberProfileViewEvents.Failure(failure))
}
}
}