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:
parent
11b242edbf
commit
0e7faaeb90
15 changed files with 560 additions and 15 deletions
|
|
@ -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')},
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue