matrix-org / pantalaimon

E2EE aware proxy daemon for matrix clients.
Apache License 2.0
294 stars 42 forks source link

Request for a message returns m.room.encrypted instead #93

Open VoQspu opened 3 years ago

VoQspu commented 3 years ago

Describe the bug I'm trying to get the body of an encrypted message (decrypted by pantalaimon), but instead i get m.room.encrypted response.

To Reproduce Steps to reproduce the behavior:

  1. Add 2 users to an encrypted room
  2. Verify users
  3. Send an encrypted message
  4. Send a request with correct room and event id (GET _matrix/client/r0/rooms/{roomId}/event/{eventId})
  5. Get a response of m.room.encrypted type

Expected behavior Response with body of a message, as per: https://matrix.org/docs/spec/client_server/latest#get-matrix-client-r0-rooms-roomid-event-eventid

poljar commented 3 years ago

That request isn't yet overridden, it's just forwarded to the homeserver.

https://github.com/matrix-org/pantalaimon/blob/master/pantalaimon/main.py#L68