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

Put EC permission shortcuts behind labs flag (PSG-630) #6634

Merged
merged 3 commits into from
Jul 25, 2022

Conversation

Johennes
Copy link
Contributor

@Johennes Johennes commented Jul 25, 2022

Signed-off-by: Johannes Marbach [email protected]

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

This is a follow-up on #6616 that puts the Element Call permission shortcuts behind a labs flag. Anyone can create a false widget of type io.element.call and silently acquire permissions so we don't want to enable this behavior by default.

Tests

Can be tested e.g. in #ecwidgettest:matrix.org

Tested devices

  • Physical
  • Emulator
  • OS version(s): 12

Checklist

CC @onurays

@Johennes Johennes marked this pull request as draft July 25, 2022 08:02
@@ -168,7 +173,7 @@ class WidgetActivity : VectorBaseActivity<ActivityWidgetBinding>() {
private fun createElementCallPipParams(): PictureInPictureParams? {
val actions = mutableListOf<RemoteAction>()
val intent = Intent(ACTION_MEDIA_CONTROL).putExtra(EXTRA_CONTROL_TYPE, CONTROL_TYPE_HANGUP)
val pendingIntent = PendingIntent.getBroadcast(this, REQUEST_CODE_HANGUP, intent, 0)
val pendingIntent = PendingIntent.getBroadcast(this, REQUEST_CODE_HANGUP, intent, FLAG_IMMUTABLE)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This isn't strictly related to the intent of this PR but the widget kept crashing for me without this.

Copy link
Contributor

Choose a reason for hiding this comment

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

@Johennes Johennes marked this pull request as ready for review July 25, 2022 08:13
@Johennes Johennes requested a review from mnaturel July 25, 2022 08:13
@sonarqubecloud
Copy link

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

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@mnaturel mnaturel left a comment

Choose a reason for hiding this comment

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

LGTM.

@Johennes Johennes merged commit e9bd271 into develop Jul 25, 2022
@Johennes Johennes deleted the johannes/ec-permission-shortcuts branch July 25, 2022 18:38
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.

2 participants