From 84a7881468a57bd4225f5c990c03b5fce729f914 Mon Sep 17 00:00:00 2001 From: Kegsay Date: Wed, 17 Jun 2020 17:01:03 +0100 Subject: [PATCH] Make account data sytests pass (#1147) --- clientapi/routing/account_data.go | 2 +- sytest-whitelist | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/clientapi/routing/account_data.go b/clientapi/routing/account_data.go index 875249b3..68e0dc5d 100644 --- a/clientapi/routing/account_data.go +++ b/clientapi/routing/account_data.go @@ -51,7 +51,7 @@ func GetAccountData( ); err == nil { return util.JSONResponse{ Code: http.StatusOK, - JSON: data, + JSON: data.Content, } } diff --git a/sytest-whitelist b/sytest-whitelist index be45b434..971f8cf0 100644 --- a/sytest-whitelist +++ b/sytest-whitelist @@ -115,6 +115,8 @@ User can invite local user to room with version 1 Should reject keys claiming to belong to a different user Can add account data Can add account data to room +Can get account data without syncing +Can get room account data without syncing #Latest account data appears in v2 /sync New account data appears in incremental v2 /sync Checking local federation server