mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-02 20:40:38 +00:00
Resolve requested changes
This commit is contained in:
parent
b48bd57a5d
commit
20c5ac8451
2 changed files with 6 additions and 9 deletions
|
@ -22,11 +22,11 @@ public interface Signal extends DBusInterface {
|
|||
) throws Error.AttachmentInvalid, Error.Failure, Error.InvalidNumber, Error.UntrustedIdentity;
|
||||
|
||||
void sendTyping(
|
||||
String recipient, Boolean stop
|
||||
String recipient, boolean stop
|
||||
) throws Error.Failure, Error.GroupNotFound, Error.UntrustedIdentity;
|
||||
|
||||
void sendReceipt(
|
||||
String recipient, long targetSentTimestamp
|
||||
void sendReadReceipt(
|
||||
String recipient, List<Long> targetSentTimestamp
|
||||
) throws Error.Failure, Error.UntrustedIdentity;
|
||||
|
||||
long sendRemoteDeleteMessage(
|
||||
|
|
|
@ -169,7 +169,7 @@ public class DbusSignalImpl implements Signal {
|
|||
|
||||
@Override
|
||||
public void sendTyping(
|
||||
final String recipient, final Boolean stop
|
||||
final String recipient, final boolean stop
|
||||
) throws Error.Failure, Error.GroupNotFound, Error.UntrustedIdentity {
|
||||
try {
|
||||
var recipients = new ArrayList<String>(1);
|
||||
|
@ -188,13 +188,10 @@ public class DbusSignalImpl implements Signal {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void sendReceipt(
|
||||
final String recipient, final long targetSentTimestamp
|
||||
public void sendReadReceipt(
|
||||
final String recipient, final List<Long> timestamps
|
||||
) throws Error.Failure, Error.UntrustedIdentity {
|
||||
try {
|
||||
var timestamps = new ArrayList<Long>(1);
|
||||
timestamps.add(targetSentTimestamp);
|
||||
|
||||
m.sendReadReceipt(getSingleRecipientIdentifier(recipient, m.getUsername()), timestamps);
|
||||
} catch (IOException e) {
|
||||
throw new Error.Failure(e.getMessage());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue