From 163b213b636a92de19d02219f35df6a556892af8 Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Thu, 31 Aug 2017 16:15:59 +0100 Subject: [PATCH] Fix 3PIDs retrieval sending null if no 3PID known for a user --- src/github.com/matrix-org/dendrite/clientapi/readers/threepid.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/github.com/matrix-org/dendrite/clientapi/readers/threepid.go b/src/github.com/matrix-org/dendrite/clientapi/readers/threepid.go index 0a3860f29..924917676 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/readers/threepid.go +++ b/src/github.com/matrix-org/dendrite/clientapi/readers/threepid.go @@ -133,6 +133,7 @@ func GetAssociated3PIDs( } var resp threePIDsResponse + resp.ThreePIDs = []threePID{} for address, medium := range threepids { tpid := threePID{Medium: medium, Address: address} resp.ThreePIDs = append(resp.ThreePIDs, tpid)