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
|
|
@ -94,6 +94,7 @@ class _MarketScreenState extends State<MarketScreen> {
|
|||
final cubit =
|
||||
await createOffersCubit(widget.connection, repository: repo);
|
||||
cubit.setBlockedAuthors(await widget.settings.blockedPubkeys());
|
||||
cubit.setHiddenOffers(await widget.settings.hiddenOfferKeys());
|
||||
final area = await widget.settings.areaGeohash();
|
||||
if (!mounted) {
|
||||
await cubit.close();
|
||||
|
|
@ -125,10 +126,13 @@ class _MarketScreenState extends State<MarketScreen> {
|
|||
}
|
||||
}
|
||||
|
||||
/// Re-reads the blocklist (the offer detail can block an author) so their
|
||||
/// offers drop out of the visible list at once.
|
||||
/// Re-reads the blocklist and hidden (reported) offers — the offer detail
|
||||
/// can change both — so they drop out of the visible list at once.
|
||||
Future<void> _reloadBlocked() async {
|
||||
_cubit?.setBlockedAuthors(await widget.settings.blockedPubkeys());
|
||||
final cubit = _cubit;
|
||||
if (cubit == null) return;
|
||||
cubit.setBlockedAuthors(await widget.settings.blockedPubkeys());
|
||||
cubit.setHiddenOffers(await widget.settings.hiddenOfferKeys());
|
||||
}
|
||||
|
||||
Future<void> _openConfig() async {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue