mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
parent
92c1f16799
commit
be963ed49b
3 changed files with 33 additions and 0 deletions
|
@ -356,6 +356,13 @@ class Manager implements Signal {
|
|||
save();
|
||||
}
|
||||
|
||||
public void unregister() throws IOException {
|
||||
// When setting an empty GCM id, the Signal-Server also sets the fetchesMessages property to false.
|
||||
// If this is the master device, other users can't send messages to this number anymore.
|
||||
// If this is a linked device, other users can still send messages, but this device doesn't receive them anymore.
|
||||
accountManager.setGcmId(Optional.<String>absent());
|
||||
}
|
||||
|
||||
public URI getDeviceLinkUri() throws TimeoutException, IOException {
|
||||
password = Util.getSecret(18);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue