Fix another bug

This commit is contained in:
Neil Alexander 2022-04-29 13:59:18 +01:00
parent 5513f31b38
commit eac5af7d31
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -637,7 +637,7 @@ func (a *KeyInternalAPI) uploadLocalDeviceKeys(ctx context.Context, req *api.Per
for _, existingKey := range existingKeys {
for _, newKey := range req.DeviceKeys {
switch {
case existingKey.UserID != newKey.DeviceID:
case existingKey.UserID != newKey.UserID:
continue
case existingKey.DeviceID != newKey.DeviceID:
continue