feat: listen to stream info on stream page

fix: disable cache read/write in RxFilter
This commit is contained in:
2025-05-13 13:25:23 +01:00
parent 3e18f7544e
commit efd95837ea
3 changed files with 42 additions and 30 deletions

View File

@ -22,18 +22,16 @@ class ChatWidget extends StatelessWidget {
muteLists.add(ndk.accounts.getPublicKey()!);
}
var filters = [
Filter(kinds: [1311, 9735], limit: 200, aTags: [stream.aTag]),
Filter(kinds: [Nip51List.kMute], authors: muteLists),
];
if (stream.info.goal != null) {
filters.add(Filter(kinds: [9041], ids: [stream.info.goal!]));
}
return RxFilter<Nip01Event>(
key: Key("stream:chat:${stream.aTag}"),
relays: stream.info.relays,
filters: [
Filter(kinds: [1311, 9735], limit: 200, aTags: [stream.aTag]),
Filter(kinds: [Nip51List.kMute], authors: muteLists),
...(stream.info.goal != null
? [
Filter(kinds: [9041], ids: [stream.info.goal!]),
]
: []),
],
filters: filters,
builder: (ctx, state) {
final mutedPubkeys =
(state ?? [])