mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 13:06:53 +00:00
Remove AccountsManager#updateDeviceAsync
This commit is contained in:
1 parent
8df3f3c150
commit
de458c3e6a
3 files changed
-61
No files matched your search
@@ -1110,15 +1110,6 @@ public class AccountsManager extends RedisPubSubAdapter<String, String> implemen
|
||||
});
|
||||
}
|
||||
|
||||
public CompletableFuture<Account> updateDeviceAsync(final Account account, final byte deviceId,
|
||||
final Consumer<Device> deviceUpdater) {
|
||||
return updateAsync(account, a -> {
|
||||
a.getDevice(deviceId).ifPresent(deviceUpdater);
|
||||
// assume that all updaters passed to the public method actually modify the device
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
public Optional<Account> getByE164(final String number) {
|
||||
return getByNumberTimer.record(() -> accounts.getByE164(number));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user