feat(social): standard NIP-56 reporting — ReportTransport in commons_core, report sheet on offers and chats, local hide + optional block

This commit is contained in:
vjrj 2026-07-13 07:56:43 +02:00
parent 11b242edbf
commit 0e7faaeb90
15 changed files with 560 additions and 15 deletions

View file

@ -92,4 +92,13 @@ void main() {
await settings.block(' AB' * 1 + 'ab' * 31); // messy spacing/case
expect(await settings.blockedPubkeys(), hasLength(1));
});
test('hidden (reported) offers round-trip as author:id keys', () async {
expect(await settings.hiddenOfferKeys(), isEmpty);
await settings.hideOffer(authorPubkeyHex: 'AB' * 32, offerId: 'tomate-1');
expect(
await settings.hiddenOfferKeys(),
{SocialSettings.offerKey('ab' * 32, 'tomate-1')},
);
});
}