question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Calling is possible even if power level is not sufficient

See original GitHub issue

Describe the bug In a (modified) direct chat, a member who doesn’t have the power level to be able to send m.call.invite events, is still able to start a call. In encrypted rooms, the callee’s devices even start to ring. To Reproduce

  1. Lower the power level for member A in a direct chat to n (< 100)
  2. Set content['events']['m.call.invite'] = n + 1 in the state event m.room.power_levels.
  3. Try to start a call from A’s device.
  4. In encrypted rooms, B’s devices start ringing, in unencrypted rooms, I assume the event gets denied by the server, but still, Element Android shows the calling screen.

Expected behavior The buttons for audio and video calls should be disabled as soon as the power level is not anymore sufficient to start calls. Also, incoming calls from users not allowed to start them, should be swallowed.

Additional context

  • App version 1.0.6 from Google Play
  • Homeserver: Synapse 1.18

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
enzingermcommented, Sep 16, 2020

The main use case in my opinion is Matrix being used in kind of a “non symmetrical” relationship where for example a teacher wants to give his students the possibility to contact him but only in form of text messages, or a custodian offering his clients a “restricted” communication channel.

1reaction
TR-SLimeycommented, Sep 16, 2020

Just for clarity, the client on the receiving end should be responsible for dropping a call which is not allowed to be made by room permissions to prevent users from bypassing this room permission using a modified client. However, the sending client can still grey out the buttons for clarity and convenience.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Specific Absorption Rate (SAR) For Cell Phones
While SAR values are an important tool in judging the maximum possible exposure to RF energy from a particular model of cell phone,...
Read more >
Statistical power and underpowered statistics
Statistical power and underpowered statistics¶. We've seen that it's possible to miss a real effect simply by not taking enough data. In most...
Read more >
What to do When Your Sample Size is Not Big Enough
In real world research, sometimes your sample size is not big enough. This is what you do when you can't achieve the necessary...
Read more >
Statistical tests, P values, confidence intervals, and power
Misinterpretation and abuse of statistical tests, confidence intervals, and statistical power have been decried for decades, yet remain rampant.
Read more >
Introduction to Power Analysis - OARC Stats - UCLA
This seminar treats power and the various factors that affect power on both a conceptual and a mechanical level. While we will not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found