mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-01-26 18:53:34 +00:00
Remove deprecated functionality
This commit is contained in:
parent
e8ab01f665
commit
82abc20871
@ -2,6 +2,12 @@
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Breaking changes
|
||||
|
||||
- Remove isRegistered method without parameters from Signal dbus interface, which always returned `true`
|
||||
- Remove `sandbox` value for --service-environment parameter, use `staging` instead
|
||||
- The `daemon` command now requires at least one channel parameter (`--socket`, `--dbus`, ...) and no longer defaults to dbus
|
||||
|
||||
## [0.13.23] - 2026-01-24
|
||||
|
||||
Requires libsignal-client version 0.86.12.
|
||||
|
||||
@ -143,9 +143,6 @@ public interface Signal extends DBusInterface {
|
||||
String avatar
|
||||
) throws Error.AttachmentInvalid, Error.Failure, Error.InvalidNumber, Error.GroupNotFound, Error.InvalidGroupId;
|
||||
|
||||
@Deprecated
|
||||
boolean isRegistered() throws Error.Failure, Error.InvalidNumber;
|
||||
|
||||
boolean isRegistered(String number) throws Error.Failure, Error.InvalidNumber;
|
||||
|
||||
List<Boolean> isRegistered(List<String> numbers) throws Error.Failure, Error.InvalidNumber;
|
||||
|
||||
@ -13,10 +13,4 @@ public enum ServiceEnvironmentCli {
|
||||
return "staging";
|
||||
}
|
||||
},
|
||||
@Deprecated SANDBOX {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "sandbox";
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
@ -10,6 +10,7 @@ import org.asamk.signal.ReceiveMessageHandler;
|
||||
import org.asamk.signal.Shutdown;
|
||||
import org.asamk.signal.commands.exceptions.CommandException;
|
||||
import org.asamk.signal.commands.exceptions.IOErrorException;
|
||||
import org.asamk.signal.commands.exceptions.UserErrorException;
|
||||
import org.asamk.signal.dbus.DbusHandler;
|
||||
import org.asamk.signal.http.HttpServerHandler;
|
||||
import org.asamk.signal.json.JsonReceiveMessageHandler;
|
||||
@ -201,9 +202,7 @@ public class DaemonCommand implements MultiLocalCommand, LocalCommand {
|
||||
&& tcpAddress == null
|
||||
&& httpAddress == null
|
||||
&& inheritedChannel == null) {
|
||||
logger.warn(
|
||||
"Running daemon command without explicit mode is deprecated. Use 'daemon --dbus' to use the dbus interface.");
|
||||
daemonHandler.runDbus(false, DbusConfig.getBusname());
|
||||
throw new UserErrorException("At least one channel parameter is required, e.g. --socket or --dbus.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -675,12 +675,6 @@ public class DbusSignalImpl implements Signal, AutoCloseable {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public boolean isRegistered() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isRegistered(String number) {
|
||||
var result = isRegistered(List.of(number));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user