-
Notifications
You must be signed in to change notification settings - Fork 732
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
VoIP Screen Sharing Permission #5811
Conversation
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.
LGTM! Left a couple of optional suggestions
@@ -30,6 +30,8 @@ sealed class VectorCallViewEvents : VectorViewEvents { | |||
object ShowDialPad : VectorCallViewEvents() | |||
object ShowCallTransferScreen : VectorCallViewEvents() | |||
object FailToTransfer : VectorCallViewEvents() | |||
object ShowScreenSharingPermissionDialog : VectorCallViewEvents() | |||
object StopScreenSharingService : VectorCallViewEvents() |
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.
Optional: This is a good opportunity to get rid of the commented code below. They're nearly 2 years old, I don't think we'll need it
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.
Right :) done.
// Show a sticky notification | ||
val notificationId = System.currentTimeMillis().toInt() | ||
val notification = notificationUtils.buildScreenSharingNotification() | ||
startForeground(notificationId, notification) |
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.
Optional: extracting this code into a private fun showStickyNotification()
could get rid of the need for a comment ;)
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.
Nice idea, done.
* develop: (107 commits) Fixes long line and comment lint errors Fixes lint errors Adds changelog file Formats entire project Adds changelog file Makes MediaType internal Bump libphonenumber from 8.12.46 to 8.12.47 updating release version in preparation for next cycle generating changelog Replaces writeAsync with awaitTransaction Replaces doWithRealm with writeAsync Translated using Weblate (Polish) Translated using Weblate (Slovak) Crash: open private room by link. Use RoomId instead of the alias. Translated using Weblate (Arabic) Makes MediaFileUtils function internal Removes runCatching from TemporaryFileCreator using unix end of line character instead of windows as *nix OSes are more common dev environments remove spaces feedback from left panel (#5686) Translated using Weblate (French) ... # Conflicts: # vector/src/main/java/im/vector/app/features/call/VectorCallViewModel.kt
Initial PR for screen sharing during a call.