Skip to content

fix always returning live devices for current user#8457

Merged
BillCarsonFr merged 3 commits into
developfrom
feature/bca/fix_bad_device_list
May 23, 2023
Merged

fix always returning live devices for current user#8457
BillCarsonFr merged 3 commits into
developfrom
feature/bca/fix_bad_device_list

Conversation

@BillCarsonFr
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@sonarqubecloud
Copy link
Copy Markdown

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
@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.

2 participants