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 always returning live devices for current user #8457

Merged
merged 3 commits into from May 23, 2023

Conversation

BillCarsonFr
Copy link
Member

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

Corrective bug fix on beta candidate.
The liveCryptoDevice() call was always returning the current user device list instead of the targeted member device list

Motivation and context

Screenshots / GIFs

Tests

  • Step 1
  • Step 2
  • Step ...

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

@BillCarsonFr BillCarsonFr added X-Release-Blocker Z-NextRelease For issues and PRs which should be included in the NextRelease. labels May 22, 2023
@BillCarsonFr BillCarsonFr requested a review from bmarty May 22, 2023 20:28
Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

LGTM. Maybe worth adding a quick changelog file, since the fix will be in the next release 1.6.1.

return olmMachine.getLiveDevices(listOf(myUserId)).map {
it.filter { it.userId == myUserId }
}
return olmMachine.getLiveDevices(userIds)
Copy link
Member

Choose a reason for hiding this comment

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

Good catch. The mapping to filter with myUserId was also quite useless, no? Anyway it's gone now :)

@BillCarsonFr BillCarsonFr force-pushed the feature/bca/fix_bad_device_list branch from c61501f to 19dc812 Compare May 23, 2023 09:01
@sonarcloud
Copy link

sonarcloud bot commented May 23, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@BillCarsonFr BillCarsonFr merged commit df16419 into develop May 23, 2023
17 checks passed
@BillCarsonFr BillCarsonFr deleted the feature/bca/fix_bad_device_list branch May 23, 2023 12:58
@BillCarsonFr BillCarsonFr self-assigned this May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
X-Release-Blocker Z-NextRelease For issues and PRs which should be included in the NextRelease.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants