Actually do 'resume' -> 'resume-token' (resume.py)

This commit is contained in:
jesopo 2019-02-09 12:26:47 +00:00
parent feffb2325b
commit 1e6e030d6f

View file

@ -4,7 +4,7 @@ CAP = "draft/resume-0.2"
class Module(ModuleManager.BaseModule):
def _get_token(self, server):
return server.connection_params.args.get("resume", [None, None])
return server.connection_params.args.get("resume-token", [None, None])
@utils.hook("received.cap.ls")
def on_cap_new(self, event):
@ -34,6 +34,6 @@ class Module(ModuleManager.BaseModule):
new_token = event["server"].connection_params.args.get(
"new-resume-token", None)
if new_token:
event["server"].connection_params.args["resume"] = [
event["server"].connection_params.args["resume-token"] = [
event["server"].nickname, new_token]
del event["server"].connection_params.args["new-resume-token"]