mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-01 03:03:10 -06:00
Remove userID, as it's not in the spec
This commit is contained in:
parent
d9b1d0129f
commit
8fc1fb4d0e
|
|
@ -30,7 +30,6 @@ import (
|
|||
|
||||
// https://matrix.org/docs/spec/client_server/r0.6.1#get-matrix-client-r0-devices
|
||||
type deviceJSON struct {
|
||||
UserID string `json:"user_id"`
|
||||
DeviceID string `json:"device_id"`
|
||||
DisplayName string `json:"display_name"`
|
||||
LastSeenIP string `json:"last_seen_ip"`
|
||||
|
|
@ -79,7 +78,6 @@ func GetDeviceByID(
|
|||
return util.JSONResponse{
|
||||
Code: http.StatusOK,
|
||||
JSON: deviceJSON{
|
||||
UserID: targetDevice.UserID,
|
||||
DeviceID: targetDevice.ID,
|
||||
DisplayName: targetDevice.DisplayName,
|
||||
LastSeenIP: stripIPPort(targetDevice.LastSeenIP),
|
||||
|
|
@ -105,7 +103,6 @@ func GetDevicesByLocalpart(
|
|||
|
||||
for _, dev := range queryRes.Devices {
|
||||
res.Devices = append(res.Devices, deviceJSON{
|
||||
UserID: dev.UserID,
|
||||
DeviceID: dev.ID,
|
||||
DisplayName: dev.DisplayName,
|
||||
LastSeenIP: stripIPPort(dev.LastSeenIP),
|
||||
|
|
|
|||
Loading…
Reference in a new issue