Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error when sending encrypted message if someone in the room logs out #3804

Merged
merged 1 commit into from
Aug 6, 2021

Conversation

onurays
Copy link
Contributor

@onurays onurays commented Aug 6, 2021

No description provided.

@onurays onurays linked an issue Aug 6, 2021 that may be closed by this pull request
@onurays onurays merged commit 60a2101 into develop Aug 6, 2021
@onurays onurays deleted the feature/ons/fix_deleting_user_device branch August 6, 2021 13:13
if (deviceInfoEntity.deviceId !in deviceIds) {
Timber.d("Remove device ${deviceInfoEntity.deviceId} of user $userId")
deviceInfoEntity.deleteOnCascade()
userEntity.devices.toTypedArray().iterator().let {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I trust you on the fact that it fixes the issue, but I'm wondering why I used an iterator at the first place and now if it should also work using userEntity.devices.forEach { or eventually userEntity.devices.toList().forEach {.

Anyway let's keep it like that for now, thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when sending encrypted message
3 participants