Calling is possible even if power level is not sufficient
See original GitHub issueDescribe 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
- Lower the power level for member
A
in a direct chat ton (< 100)
- Set
content['events']['m.call.invite'] = n + 1
in the state eventm.room.power_levels
. - Try to start a call from
A
’s device. - 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:
- Created 3 years ago
- Comments:10 (9 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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.