mirror of
https://github.com/element-hq/dendrite.git
synced 2026-01-16 23:00:35 +00:00
fix device deletion (#3614)
### Pull Request Checklist <!-- Please read https://matrix-org.github.io/dendrite/development/contributing before submitting your pull request --> * [ ] I have added Go unit tests or [Complement integration tests](https://github.com/matrix-org/complement) for this PR _or_ I have justified why this PR doesn't need tests * [ ] Pull request includes a [sign off below](https://element-hq.github.io/dendrite/development/contributing#sign-off) _or_ I have already signed off privately Signed-off-by: `robinsdan <115981357+robinsdan@users.noreply.github.com>`
This commit is contained in:
parent
331a6f221b
commit
8d2da78744
1 changed files with 1 additions and 1 deletions
|
|
@ -337,7 +337,7 @@ func (a *UserInternalAPI) PerformDeviceDeletion(ctx context.Context, req *api.Pe
|
|||
deleteReq := &api.PerformDeleteKeysRequest{
|
||||
UserID: req.UserID,
|
||||
}
|
||||
for _, keyID := range req.DeviceIDs {
|
||||
for _, keyID := range deletedDeviceIDs {
|
||||
deleteReq.KeyIDs = append(deleteReq.KeyIDs, gomatrixserverlib.KeyID(keyID))
|
||||
}
|
||||
deleteRes := &api.PerformDeleteKeysResponse{}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue