From 5bc80a215f39475a51d354dc6e77a8ad77dce0eb Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sat, 28 Oct 2017 07:59:14 +0200 Subject: [PATCH] Update Matrix.API to comply with the current spec --- src/matrix-http-client.vala | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/matrix-http-client.vala b/src/matrix-http-client.vala index a48b44b..8d67495 100644 --- a/src/matrix-http-client.vala +++ b/src/matrix-http-client.vala @@ -73,13 +73,16 @@ public class Matrix.HTTPClient : Matrix.HTTPAPI, Matrix.Client { false, username, password); } - public void + public new void logout() throws Matrix.Error { - token = null; - refresh_token = null; - abort_pending(); + ((Matrix.API)this).logout( + () => { + token = null; + refresh_token = null; + abort_pending(); + }); } private void