mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 01:13:10 -06:00
Fix 3PIDs retrieval sending null if no 3PID known for a user
This commit is contained in:
parent
de8411d3fd
commit
163b213b63
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue