fix: notifications icon

This commit is contained in:
2025-05-31 12:02:01 +01:00
parent b7764d82c9
commit f553ecdab3
3 changed files with 50 additions and 42 deletions

View File

@ -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 {