summary refs log tree commit diff
path: root/cmdclient/console.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-08-26 18:57:55 +0100
committerErik Johnston <erik@matrix.org>2014-08-26 18:57:55 +0100
commit93cff1668c5e42d45a8393a1ac59173c8101b375 (patch)
treeb20e984d79e5bc59fedbfac335c97fe349404b14 /cmdclient/console.py
parentWIP: Completely change how event streaming and pagination work. This reflects... (diff)
parentPepper UT TODOs (diff)
downloadsynapse-93cff1668c5e42d45a8393a1ac59173c8101b375.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into stream_refactor
Diffstat (limited to 'cmdclient/console.py')
-rwxr-xr-xcmdclient/console.py7
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"]