Fix minor regression with Auth feature and REST/Memory backend

See https://matrix.to/#/!NPRUEisLjcaMtHIzDr:kamax.io/$1523216730848820dFUZX:matrix.org
This commit is contained in:
Max Dor
2018-04-08 22:05:36 +02:00
parent 5ef145212a
commit a0f8af820e
2 changed files with 5 additions and 5 deletions

View File

@@ -163,7 +163,7 @@ public class MemoryIdentityStore implements AuthenticatorProvider, IDirectoryPro
return BackendAuthResult.failure();
} else {
BackendAuthResult result = new BackendAuthResult();
id.getThreepids().forEach(result::withThreePid);
id.getThreepids().forEach(tpid -> result.withThreePid(new ThreePid(tpid.getMedium(), tpid.getAddress())));
result.succeed(mxid.getId(), UserIdType.MatrixID.getId(), "");
return result;
}