}
}
+ @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
@Override
public void setContactName(final String number, final String name) {
try {
- m.setContactName(getSingleRecipientIdentifier(number, m.getSelfNumber()), name);
+ m.setContactName(getSingleRecipientIdentifier(number, m.getSelfNumber()), name, "");
} catch (NotPrimaryDeviceException e) {
throw new Error.Failure("This command doesn't work on linked devices.");
} catch (IOException e) {