fix(federation): return empty devices list (#37761)

This commit is contained in:
Diego Sampaio 2025-12-15 10:30:47 -03:00 committed by GitHub
parent 8bf0bab1eb
commit a00c000f97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -416,13 +416,14 @@ export const getMatrixProfilesRoutes = () => {
tags: ['Federation'],
license: ['federation'],
},
async (_c) => {
async (c) => {
return {
body: {
errcode: 'M_UNRECOGNIZED',
error: 'This endpoint is not implemented on the homeserver side',
devices: [],
stream_id: 0,
user_id: c.req.param('userId'),
},
statusCode: 501,
statusCode: 200,
};
},
)