diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-08-26 17:21:48 +0100 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-08-26 17:21:48 +0100 |
commit | 5a93bfe1f03bf225bcf3b14089faefa3b5715499 (patch) | |
tree | 8fdd0868de29108aa3de5a9bb524b516c343e326 /cmdclient/console.py | |
parent | Added RoomSendEventRestServlet to send generic non-state events. It even appe... (diff) | |
download | synapse-5a93bfe1f03bf225bcf3b14089faefa3b5715499.tar.xz |
Removed MessageRestServlet, use RoomSendEventRestServlet instead. Updated cmdclient, tests and webclient. All appears to work.
Diffstat (limited to 'cmdclient/console.py')
-rwxr-xr-x | cmdclient/console.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cmdclient/console.py b/cmdclient/console.py index f997b7539c..4cb604e796 100755 --- a/cmdclient/console.py +++ b/cmdclient/console.py @@ -409,10 +409,9 @@ class SynapseCmd(cmd.Cmd): def do_send(self, line): """Sends a message. "send <roomid> <body>" """ args = self._parse(line, ["roomid", "body"]) - msg_id = "m%s" % int(time.time()) - path = "/rooms/%s/messages/%s/%s" % (urllib.quote(args["roomid"]), - self._usr(), - msg_id) + txn_id = "txn%s" % int(time.time()) + path = "/rooms/%s/send/m.room.message/%s" % (urllib.quote(args["roomid"]), + txn_id) body_json = { "msgtype": "m.text", "body": args["body"] |