Despite the user is just a default role in the room (meaning not an admin nor moderator role). This user was able to change the room avatar (and possibly even more?).

The room "Change room avatar" permission level is set to "Moderator".

Meaning the users with default user level should not be allowed to change the avatar... I didn't validate if this user could even change more, maybe the name, description.. you know what..
If not matrix.org:
Is this a version 5 room? (That's the default in 1.20.1, so if you didn't do anything special it will be v5.)
Can you provide the following from the devtools in Element Web (type /devtools) and then go to:
This might have some info you need to redact, but should just include some names / IDs.
I used Element desktop, but I found the same information under Advanced Settings of the room, Open Devtools -> Explore Room state. And I entered m.room.power_levels.
To answer your first question, yes this is room version 5.
And now the JSON output (ps. the #welcome room was created by me, without changing anything; should be default as well):
{
"type": "m.room.power_levels",
"sender": "@melroy:melroy.org",
"content": {
"users": {
"@melroy:melroy.org": 100
},
"users_default": 0,
"events": {
"m.room.name": 50,
"m.room.power_levels": 100,
"m.room.history_visibility": 100,
"m.room.canonical_alias": 50,
"m.room.avatar": 50,
"m.room.tombstone": 100,
"m.room.server_acl": 100,
"m.room.encryption": 100
},
"events_default": 0,
"state_default": 50,
"ban": 50,
"kick": 50,
"redact": 50,
"invite": 50
},
"state_key": "",
"origin_server_ts": 1601931929492,
"unsigned": {
"age": 105597066
},
"event_id": "$Tnu_711AssA9JypbyoIf-Cpv659cTi74Yw7X8kpe3LM",
"room_id": "!NMycWPdjdbUxLggXZF:melroy.org"
}
Looking back into the chat history, I did NOT see the message "[user x] changed the room avatar to". Meaning, maybe the user was not changing the room avatar at all. But that person was changing this personal avatar, reflecting in the room avatar (when there was no room avatar set yet by me).
My first conclusion was that this person was able to change the avatar. Another conclusion could still be that there is a bug in the server and/or Element (client-side), showing the wrong avatar.
My first conclusion was that this person was able to change the avatar. Another conclusion could still be that there is a bug in the server and/or Element (client-side), showing the wrong avatar.
Did the room only have two users in it? I wonder if there is a client bug about how / when the user's avatar vs. a room avatar is used? (I think Element Web shows another user's avatar as the room avatar when you're in a private chat.)
When you go into "Explore Room State" -- is there a "m.room.avatar" option? If not, then the avatar has not been set.
Yes only 2 users. Me (Admin role: power 100) and another user that registered on my server (default role: power 0).
After seeing his avatar appearing, I was kinda shocked, and change the room avatar myself with the one I wanted. Meaning there is definitely a room avatar set now. So too bad I can not know if m.room.avatar was set, before I set it. Stupid me.
Anyhow, it was suppose to be a #welcome room, so not a private room. That was my intention at least, by setting #welcome also as an auto-join room in the yaml settings.
EDIT: Can I see the history of changes that has been executed on the room settings?
After reading all this, maybe the following steps makes it able to reproduce this issue:
Yes only 2 users. Me (Admin role: power 100) and another user that registered on my server (default role: power 0).
Thanks for the info! I was able to reproduce what you're seeing:
Indeed.... so there you go.. The question is: is this wanted/a feature? Or a bug?
I think its a bug :+1:
EDIT: Client-side issue
I have no idea if this is expected behavior since it doesn't have to do with Synapse!
Can you file one an issue with the details above in https://github.com/vector-im/element-web? Thank you!
Created ticket in element: https://github.com/vector-im/element-web/issues/15411
Thank you! 馃憤
thank you as well :+1: