mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-04 05:00:39 +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;
|
) throws Error.AttachmentInvalid, Error.Failure, Error.InvalidNumber, Error.UntrustedIdentity;
|
||||||
|
|
||||||
void sendTyping(
|
void sendTyping(
|
||||||
String recipient, Boolean stop
|
String recipient, boolean stop
|
||||||
) throws Error.Failure, Error.GroupNotFound, Error.UntrustedIdentity;
|
) throws Error.Failure, Error.GroupNotFound, Error.UntrustedIdentity;
|
||||||
|
|
||||||
void sendReceipt(
|
void sendReadReceipt(
|
||||||
String recipient, long targetSentTimestamp
|
String recipient, List<Long> targetSentTimestamp
|
||||||
) throws Error.Failure, Error.UntrustedIdentity;
|
) throws Error.Failure, Error.UntrustedIdentity;
|
||||||
|
|
||||||
long sendRemoteDeleteMessage(
|
long sendRemoteDeleteMessage(
|
||||||
|
|
|
@ -169,7 +169,7 @@ public class DbusSignalImpl implements Signal {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendTyping(
|
public void sendTyping(
|
||||||
final String recipient, final Boolean stop
|
final String recipient, final boolean stop
|
||||||
) throws Error.Failure, Error.GroupNotFound, Error.UntrustedIdentity {
|
) throws Error.Failure, Error.GroupNotFound, Error.UntrustedIdentity {
|
||||||
try {
|
try {
|
||||||
var recipients = new ArrayList<String>(1);
|
var recipients = new ArrayList<String>(1);
|
||||||
|
@ -188,13 +188,10 @@ public class DbusSignalImpl implements Signal {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendReceipt(
|
public void sendReadReceipt(
|
||||||
final String recipient, final long targetSentTimestamp
|
final String recipient, final List<Long> timestamps
|
||||||
) throws Error.Failure, Error.UntrustedIdentity {
|
) throws Error.Failure, Error.UntrustedIdentity {
|
||||||
try {
|
try {
|
||||||
var timestamps = new ArrayList<Long>(1);
|
|
||||||
timestamps.add(targetSentTimestamp);
|
|
||||||
|
|
||||||
m.sendReadReceipt(getSingleRecipientIdentifier(recipient, m.getUsername()), timestamps);
|
m.sendReadReceipt(getSingleRecipientIdentifier(recipient, m.getUsername()), timestamps);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new Error.Failure(e.getMessage());
|
throw new Error.Failure(e.getMessage());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue