12 Dec 2023 |
| @PC-Admin:matrix.orgchanged room power levels. | 03:29:14 |
| @PC-Admin:matrix.orgchanged room power levels. | 03:29:19 |
@PC-Admin:matrix.org | In reply to @wh1:matrix.org what is the enterprise server suite? come again? | 03:29:28 |
wh1 | hello | 07:41:27 |
wh1 | how | 07:42:09 |
wh1 | what is the enterprise server suite for Synapse ? | 07:44:34 |
wh1 | Does the latest Synapse support riot Android clients? | 10:27:14 |
Aaron | Yes synapse still supports extremely old versions of Matrix APIs, but if you care about security you shouldn't be using those old clients because they are full of vulnerabilities. | 18:02:19 |
wh1 | I upgraded Synapse to the latest version, but when I clicked the sign up button on the Riot android client, it didn't work. Why? | 21:05:43 |
Aaron | Not sure. Look at your Synapse logs and see what is going wrong. I would recommend you try to do the most basic type of registration, just a username and password. Not an email or a phone number. | 22:18:17 |
13 Dec 2023 |
wh1 | In the element client, which api does a chat room administrator call to set another user as a chat room administrator? | 11:36:51 |
Aaron | wh1: you send a m.room.power_levels event https://spec.matrix.org/v1.9/client-server-api/#mroompower_levels | 16:38:59 |
wh1 | @PUT("rooms/{roomId}/state/m.room.power_levels"),---- how to write this curl?
| 16:59:18 |
wh1 |
wh1: you send a m.room.power_levels event https://spec.matrix.org/v1.9/client-server-api/#mroompower_levels
how to send? use curl?
| 17:00:37 |
Aaron | Probably easier to use a client like Element to make that change but would be something like this with curl
curl -d '{
"users": {
"@a:example.com": 100,
"@b:example.com": 100
},
"events": {
"m.room.name": 50,
"m.room.power_levels": 50,
"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,
"m.room.topic": 50,
"im.vector.modular.widgets": 50
},
"events_default": 0,
"state_default": 50,
"ban": 50,
"kick": 50,
"redact": 50
}' -XPUT "https://example.com/_matrix/client/v3/rooms/!example:example.com/send/m.room.power_levels"
| 17:05:10 |
wh1 | Don't need a chat room administrator token? | 17:17:15 |
Aaron | Yes you will | 17:17:31 |
wh1 | where to write the token? | 17:18:45 |
Aaron | --header "Authorization: Bearer YOUR_TOKEN" | 17:19:34 |
wh1 | Shouldn't these be changed?
"events": {
"m.room.name": 50,
"m.room.power_levels": 50,
"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,
"m.room.topic": 50,
"im.vector.modular.widgets": 50
},
"events_default": 0,
"state_default": 50,
"ban": 50,
"kick": 50,
"redact": 50 | 17:34:28 |
Aaron | wh1: however you want to set those is up to you. I just pulled that from some old command I ran in the past. But you do need to send the whole power level event, not just the things you are changing. | 17:35:32 |
Aaron | Be careful to include yourself in the event otherwise you will demote yourself and won't be able to control the room anymore. | 17:36:36 |
wh1 | return this | 17:48:56 |
wh1 | <html>
<head><title>404 - No Such Resource</title></head>
<body>
<h1>No Such Resource</h1>
<p>Sorry. No luck finding that resource.</p>
</body>
</html>
| 17:49:00 |
Aaron | wh1: make sure you are using the correct (sub)domain and port | 17:49:37 |
wh1 | Is one of the following me?
"users": {
"@a:example.com": 100,
"@b:example.com": 100
}, | 17:51:35 |
Aaron | wh1: doesn't matter | 17:51:57 |
wh1 |
wh1: make sure you are using the correct (sub)domain and port
yes
| 17:53:31 |
wh1 | Does one of the following two users have to be myself?
"users": {
"@a:example.com": 100,
"@b:example.com": 100
}, | 18:03:55 |
wh1 | My server is synapse1.4.1, is it different? | 18:11:40 |