mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-30 11:04:21 +01:00
Implement unregister command for jsonrpc and dbus daemon
This commit is contained in:
@@ -138,6 +138,24 @@ public class DbusSignalImpl implements Signal {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void unregister() throws Error.Failure {
|
||||
try {
|
||||
m.unregister();
|
||||
} catch (IOException e) {
|
||||
throw new Error.Failure("Failed to unregister: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteAccount() throws Error.Failure {
|
||||
try {
|
||||
m.deleteAccount();
|
||||
} catch (IOException e) {
|
||||
throw new Error.Failure("Failed to delete account: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addDevice(String uri) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user