matrix-org / matrix-appservice-irc

Node.js IRC bridge for Matrix
Apache License 2.0
462 stars 151 forks source link

Room visibility setting is broken for appservice directories #1606

Closed Half-Shot closed 1 year ago

Half-Shot commented 2 years ago

The bridge is trying to set the visibility of a room to its network name -_-

122022-09-13 08:42:28 INFO:IrcBridge [-] PUT http://localhost:8008/_matrix/client/r0/directory/list/appservice/!ulpzbqqkOSdqWjdtrb%3Abeefy/public (AS) Body: "{\"visibility\":\"localhost\"}"
jaller94 commented 1 year ago

Function in the bridge looks good. Function in matrix-appservice-bridge looks good.

Somehow the parameters must get mixed up.

The URL should be /directory/list/appservice/<network>/<roomId>.

jaller94 commented 1 year ago

I guess this was fixed in https://github.com/matrix-org/matrix-appservice-bridge/commit/5dd1c4f6e123ba83238da9e4995c88239256cd50#diff-b245d4e56ebec789c8b9d861c90f44e7d635f293b3928c587d42f36cc4cec7a6L856 of the matrix-appservice-bridge.

The former call parameter order does not match the function parameter order of matrix-js-sdk.

Tasks: