mirror of
https://github.com/nostrlabs-io/zap-stream-flutter.git
synced 2025-06-15 19:48:23 +00:00
fix: notifications icon
This commit is contained in:
@ -17,7 +17,8 @@ class _NotificationsButtonWidget extends State<NotificationsButtonWidget> {
|
||||
return ValueListenableBuilder(
|
||||
valueListenable: notifications,
|
||||
builder: (context, state, _) {
|
||||
final isNotified = (state?.notifyKeys ?? []).contains(widget.pubkey);
|
||||
if (state == null) return SizedBox();
|
||||
final isNotified = state.notifyKeys.contains(widget.pubkey);
|
||||
return IconButton(
|
||||
iconSize: 20,
|
||||
onPressed: () async {
|
||||
|
Reference in New Issue
Block a user