mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Refactor NoteToSelf to singleton class
This commit is contained in:
parent
4acab9043c
commit
7c9fd9d0fb
3 changed files with 4 additions and 9 deletions
|
@ -25,7 +25,7 @@ public class CommandUtil {
|
|||
) throws UserErrorException {
|
||||
final var recipientIdentifiers = new HashSet<RecipientIdentifier>();
|
||||
if (isNoteToSelf) {
|
||||
recipientIdentifiers.add(new RecipientIdentifier.NoteToSelf());
|
||||
recipientIdentifiers.add(RecipientIdentifier.NoteToSelf.INSTANCE);
|
||||
}
|
||||
if (recipientStrings != null) {
|
||||
final var localNumber = m.getUsername();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue