-
Notifications
You must be signed in to change notification settings - Fork 498
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
Check power level before starting live sharing location #7808
Check power level before starting live sharing location #7808
Conversation
@pixlwave A small change to enhance Element iOS ;-) We made this change on Tchap. |
bb22a72
to
ca76c57
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks sensible to me. Have made a couple of suggestions for it :)
...UI/Modules/LocationSharing/StartLocationSharing/Coordinator/LocationSharingCoordinator.swift
Outdated
Show resolved
Hide resolved
// Should call `minimumPowerLevelForSendingStateEvent(_ eventType: MXEventType) -> Int` from `MatrixSDK:MXRoomPowerLevels.swift` | ||
// but can't because it is inaccessible due to 'internal' protection level |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seems purely like an oversight when refining the objc for Swift. Would you mind making these 2 public and updating the PR based upon that:
It would give us a much neater implementation here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Need to compile against updated matrix-iso-sdk lib (matrix-org/matrix-ios-sdk#1869)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, it's merged so feel free to update the submodule and push 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, what do you mean by 'update the submodule and push" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, the SDK as a pod was deprecated recently, and EI switched to consuming it as a git submodule. Don't worry, I've opened #7819 with the update, so once that is merged just rebase on develop
and CI should be happy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's merged.
Signed-off-by: Nicolas Buquet <nbuquet@buquet-net.com>
ca76c57
to
b44685c
Compare
@giomfo Can you follow these please. Thanks 🙏 |
...UI/Modules/LocationSharing/StartLocationSharing/Coordinator/LocationSharingCoordinator.swift
Outdated
Show resolved
Hide resolved
…inator/LocationSharingCoordinator.swift Use local var `roomPowerLevels` Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
…ile is too big. Signed-off-by: Nicolas Buquet <nbuquet@buquet-net.com>
@NicolasBuquet Are you planning on coming back to this PR? We still need a rebase for CI to pass please. |
Hello @pixlwave |
@NicolasBuquet If you rebase your branch (or merge |
…-live-sharing-location-
…location-' of github.com:NicolasBuquet/element-ios-tchap into nbuquet/check-power-level-before-starting-live-sharing-location-
Merge done @pixlwave |
Pull Request Checklist