fixup! Combine username confirmation and link creation into a single operation.

This commit is contained in:
Greyson Parrelli 2024-01-11 12:29:40 -05:00
parent 54012cb33a
commit 16ea1912b4

View file

@ -785,7 +785,7 @@ public class SignalServiceAccountManager {
public UsernameLinkComponents confirmUsernameAndCreateNewLink(Username username) throws IOException { public UsernameLinkComponents confirmUsernameAndCreateNewLink(Username username) throws IOException {
try { try {
UsernameLink link = link = username.generateLink(); UsernameLink link = username.generateLink();
UUID serverId = this.pushServiceSocket.confirmUsernameAndCreateNewLink(username, link); UUID serverId = this.pushServiceSocket.confirmUsernameAndCreateNewLink(username, link);
return new UsernameLinkComponents(link.getEntropy(), serverId); return new UsernameLinkComponents(link.getEntropy(), serverId);