Fix the message posting HTTP API.

This commit is contained in:
poljar (Damir Jelić) 2018-01-17 10:02:11 +01:00
parent 724787615b
commit 77bf29dabb

View file

@ -289,14 +289,15 @@ class MatrixMessage:
)
elif message_type == MessageType.SEND:
path = ("{api}/rooms/{room}/send/m.room.message?"
path = ("{api}/rooms/{room}/send/m.room.message/{tx_id}?"
"access_token={access_token}").format(
api=MATRIX_API_PATH,
room=room_id,
tx_id=get_transaction_id(server),
access_token=server.access_token)
self.request = HttpRequest(
RequestType.POST,
RequestType.PUT,
server.address,
server.port,
path,