Refactor NoteToSelf to singleton class

This commit is contained in:
AsamK 2021-09-28 21:11:53 +02:00
parent 4acab9043c
commit 7c9fd9d0fb
3 changed files with 4 additions and 9 deletions

View file

@ -276,7 +276,7 @@ public class DbusSignalImpl implements Signal {
) throws Error.AttachmentInvalid, Error.Failure, Error.UntrustedIdentity {
try {
final var results = m.sendMessage(new Message(message, attachments),
Set.of(new RecipientIdentifier.NoteToSelf()));
Set.of(RecipientIdentifier.NoteToSelf.INSTANCE));
checkSendMessageResults(results.getTimestamp(), results.getResults());
return results.getTimestamp();
} catch (AttachmentInvalidException e) {