Skip to content
Snippets Groups Projects
Commit b01aeac8 authored by Kegan Dougal's avatar Kegan Dougal
Browse files

URL renaming: Room state keys now use the format...

URL renaming: Room state keys now use the format /rooms/$roomid/state/$event_type/$state_key. cmdclient: Fixed double urlencoding on leave command. Stream from the END since START now produces an error on /events.
parent 5796232c
Branches
Tags
No related merge requests found
...@@ -61,7 +61,7 @@ class SynapseCmd(cmd.Cmd): ...@@ -61,7 +61,7 @@ class SynapseCmd(cmd.Cmd):
"send_delivery_receipts": "on" "send_delivery_receipts": "on"
} }
self.path_prefix = "/matrix/client/api/v1" self.path_prefix = "/matrix/client/api/v1"
self.event_stream_token = "START" self.event_stream_token = "END"
self.prompt = ">>> " self.prompt = ">>> "
def do_EOF(self, line): # allows CTRL+D quitting def do_EOF(self, line): # allows CTRL+D quitting
...@@ -402,7 +402,7 @@ class SynapseCmd(cmd.Cmd): ...@@ -402,7 +402,7 @@ class SynapseCmd(cmd.Cmd):
"""Leaves a room: "leave <roomid>" """ """Leaves a room: "leave <roomid>" """
try: try:
args = self._parse(line, ["roomid"], force_keys=True) args = self._parse(line, ["roomid"], force_keys=True)
self._do_membership_change(urllib.quote(args["roomid"]), "leave", self._usr()) self._do_membership_change(args["roomid"], "leave", self._usr())
except Exception as e: except Exception as e:
print e print e
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment