X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/22add1cbee357e988ca9c85d9d161fc783fd5fa3..c1775913b9c54c84b45154aa841a0ba475c7c9fd:/src/main/java/org/asamk/signal/dbus/DbusRegistrationManagerImpl.java diff --git a/src/main/java/org/asamk/signal/dbus/DbusRegistrationManagerImpl.java b/src/main/java/org/asamk/signal/dbus/DbusRegistrationManagerImpl.java index 4d43b98c..788e0c91 100644 --- a/src/main/java/org/asamk/signal/dbus/DbusRegistrationManagerImpl.java +++ b/src/main/java/org/asamk/signal/dbus/DbusRegistrationManagerImpl.java @@ -27,8 +27,11 @@ public class DbusRegistrationManagerImpl implements RegistrationManager { @Override public void register( - final boolean voiceVerification, final String captcha + final boolean voiceVerification, final String captcha, final boolean forceRegister ) throws IOException, CaptchaRequiredException { + if (forceRegister) { + throw new UnsupportedOperationException(); + } if (captcha == null) { signalControl.register(number, voiceVerification); } else {