element-hq / element-hq/element-meta

Confusing display of custom power level in room user list

Open
#1,397 7 comments 5 reactions 0 assignees View on GitHub
A-Member-List O-Occasional S-Minor T-Defect X-Needs-Design
Dominant language
No language data
Stars
112
Forks
25
Avg merge
6h 6m
Merged PRs (30d)
4

Description

### Steps to reproduce

1. Go to a room that was migrated from Gitter, e.g. https://app.gitter.im/#/room/#ADOdb_ADOdb:gitter.im
2. In the room's People list, notice that users who previously were admins before Gitter migrated to Matrix, are now listed as *Mods*. However, @MadLittleMods informed me that they effectively are Admins, but with a Custom power level of **90** (see [discussion thread](https://matrix.to/#/!IxQMqGgyzZgHKssexF:gitter.im/$5OBWedojqUtnt-S18OT-WAspbZlRbCfxuL6beXvEOuU?via=gitter.im&via=matrix.org&via=aria-net.org)).
4. Invite a new user, and make them *Moderator*
6. In the user list, they are shown as **Mod** just like the old admins, but in reality their Power level is **50**

![image](https://user-images.githubusercontent.com/449891/218801978-b082d51b-e7cb-4fe9-bfb3-bb079ea82d9f.png)

![image](https://user-images.githubusercontent.com/449891/218801898-efdf5c09-4d0f-4366-91e7-c34fab8b5716.png)

`m.room.power_levels` in room for example (all actions can be accomplished by a user with a power level of `90`):

```json
{
"ban": 50,
"events": {
"m.room.avatar": 50,
"m.room.canonical_alias": 50,
"m.room.encryption": 90,
"m.room.history_visibility": 90,
"m.room.name": 50,
"m.room.power_levels": 90,
"m.room.server_acl": 90,
"m.room.tombstone": 90
},
"events_default": 0,
"invite": 0,
"kick": 50,
"redact": 50,
"state_default": 50,
"users": {
"@dregad-544c57d4db8155e6700ce750:gitter.im": 90,
"@dregad:matrix.org": 90,
"@gitter-badger:gitter.im": 100,
"@mnewnham-5593f15f15522ed4b3e32b93:gitter.im": 90,
"@moderation:gitter.im": 100
},
"users_default": 0
}
```

### Outcome

#### What did you expect?

The People list should display the user's actual power level, and definitely **not** regroup custom power levels with standard ones, which is confusing (and misleading).

#### What happened instead?

Custom power level 90 is displayed as `Mod`

### Operating system

Windows

### Browser information

Firefox 102.4.0esr

### URL for webapp

app.gitter.im and app.element.io

### Application version

Version de Gitter : 1.11.23-rc.1 Version de Olm : 3.2.12 / Version de Element : 1.11.23 Version de Olm : 3.2.12

### Homeserver

gitter.im and matrix.org

### Will you send logs?

No

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the People list and the m.room.power_levels data described in the issue, comparing users at power levels 50 and 90. The change is complete when custom levels are not grouped under the standard Mod label and the displayed role accurately reflects the user's actual power level.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.