mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
parent
ed3992d993
commit
6feff1e42b
4 changed files with 28 additions and 1 deletions
|
@ -298,6 +298,21 @@ public class DbusSignalImpl implements Signal {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public long sendPaymentNotification(
|
||||
final byte[] receipt, final String note, final String recipient
|
||||
) throws Error.Failure {
|
||||
try {
|
||||
final var results = m.sendPaymentNotificationMessage(receipt,
|
||||
note,
|
||||
getSingleRecipientIdentifier(recipient, m.getSelfNumber()));
|
||||
checkSendMessageResults(results);
|
||||
return results.timestamp();
|
||||
} catch (IOException e) {
|
||||
throw new Error.Failure(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendTyping(
|
||||
final String recipient, final boolean stop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue