Fix plain text output of blocked group ids

This commit is contained in:
AsamK 2022-03-27 18:57:21 +02:00
parent b5d578e483
commit 86e5ef7382

View file

@ -1,9 +1,9 @@
package org.asamk.signal; package org.asamk.signal;
import org.asamk.signal.manager.Manager; import org.asamk.signal.manager.Manager;
import org.asamk.signal.manager.api.UntrustedIdentityException;
import org.asamk.signal.manager.api.MessageEnvelope; import org.asamk.signal.manager.api.MessageEnvelope;
import org.asamk.signal.manager.api.RecipientIdentifier; import org.asamk.signal.manager.api.RecipientIdentifier;
import org.asamk.signal.manager.api.UntrustedIdentityException;
import org.asamk.signal.manager.groups.GroupId; import org.asamk.signal.manager.groups.GroupId;
import org.asamk.signal.manager.storage.recipients.RecipientAddress; import org.asamk.signal.manager.storage.recipients.RecipientAddress;
import org.asamk.signal.output.PlainTextWriter; import org.asamk.signal.output.PlainTextWriter;
@ -309,7 +309,7 @@ public class ReceiveMessageHandler implements Manager.ReceiveMessageHandler {
writer.println("- {}", address.getLegacyIdentifier()); writer.println("- {}", address.getLegacyIdentifier());
} }
for (var groupId : blockedList.groupIds()) { for (var groupId : blockedList.groupIds()) {
writer.println("- {}", groupId); writer.println("- {}", groupId.toBase64());
} }
} }
if (syncMessage.viewOnceOpen().isPresent()) { if (syncMessage.viewOnceOpen().isPresent()) {