mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-02 04:20:38 +00:00
Minor fixes
This commit is contained in:
parent
938b2a2b9d
commit
fbf2f79459
2 changed files with 2 additions and 7 deletions
|
@ -126,7 +126,7 @@ Use listDevices to see the deviceIds.
|
|||
|
||||
=== isRegistered
|
||||
|
||||
Checks if a list of users are registered on Signal or not.
|
||||
Checks if a list of phone numbers are registered on Signal or not.
|
||||
|
||||
[NUMBER [NUMBER ...]]::
|
||||
One or more numbers to check.
|
||||
|
|
|
@ -353,12 +353,7 @@ public class Manager implements Closeable {
|
|||
* @throws IOException if its unable to check if the user is registered
|
||||
*/
|
||||
public boolean isUserRegistered(String number) throws IOException {
|
||||
ContactTokenDetails details = this.accountManager.getContact(number).orNull();
|
||||
if (details == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return this.accountManager.getContact(number).orNull() != null;
|
||||
}
|
||||
|
||||
public void register(boolean voiceVerification, String captcha) throws IOException {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue