[fractal] Use stable API endpoints
- From: Alexandre Franke <afranke src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] Use stable API endpoints
- Date: Sun, 13 Jan 2019 21:44:50 +0000 (UTC)
commit 9e98846c734e3fb538f2ffab5e5703a61f33530b
Author: Alejandro DomÃnguez <adomu net-c com>
Date: Sat Jan 12 17:27:56 2019 +0100
Use stable API endpoints
fractal-matrix-api/src/backend/directory.rs | 2 +-
fractal-matrix-api/src/backend/user.rs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/fractal-matrix-api/src/backend/directory.rs b/fractal-matrix-api/src/backend/directory.rs
index 1b535b6c..30bf4131 100644
--- a/fractal-matrix-api/src/backend/directory.rs
+++ b/fractal-matrix-api/src/backend/directory.rs
@@ -21,7 +21,7 @@ pub fn protocols(bk: &Backend) {
let baseu = bk.get_base_url();
let tk = bk.data.lock().unwrap().access_token.clone();
let mut url = baseu
- .join("/_matrix/client/unstable/thirdparty/protocols")
+ .join("/_matrix/client/r0/thirdparty/protocols")
.expect("Wrong URL in protocols()");
url.query_pairs_mut()
.clear()
diff --git a/fractal-matrix-api/src/backend/user.rs b/fractal-matrix-api/src/backend/user.rs
index 8471b707..fe02fe01 100644
--- a/fractal-matrix-api/src/backend/user.rs
+++ b/fractal-matrix-api/src/backend/user.rs
@@ -256,7 +256,7 @@ pub fn delete_three_pid(bk: &Backend, medium: &str, address: &str) {
let baseu = bk.get_base_url();
let tk = bk.data.lock().unwrap().access_token.clone();
let mut url = baseu
- .join("/_matrix/client/unstable/account/3pid/delete")
+ .join("/_matrix/client/r0/account/3pid/delete")
.expect("Wrong URL in delete_three_pid()");
url.query_pairs_mut()
.clear()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]