element-hq / element-hq/element-web

Power level edits can race with the remote echo

Open
#22,178 0 comments 1 reaction 0 assignees View on GitHub
A-Power-Levels O-Uncommon S-Minor T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Change someone's power level
2. Before that first power levels event comes down the remote echo, change someone else's power level

### Outcome

#### What did you expect?

Either it shouldn't be possible to change the 2nd user's power level while the first request is still in flight, or the 2nd power level event should take the local echo of the 1st power level event into account

#### What happened instead?

The 2nd power level event doesn't include the changes that were made in the 1st power level event, meaning that the 1st change is unexpectedly undone

### Operating system

NixOS unstable

### Browser information

Firefox 100.0

### URL for webapp

develop.element.io

### Application version

Element version: 479d4bf64d97-react-26bc3ab0aa60-js-4721aa1d241a Olm version: 3.2.8

### Homeserver

matrix.org

### Will you send logs?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.