forked from Nexus/nexus
use dot shorthands where possible in notif code
This commit is contained in:
parent
c3b39a6294
commit
2c1ccc4728
1 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ class ShownNotificationsHelper(final Ref ref) {
|
|||
final shown = IMap<String, ISet<int>>.fromJson(
|
||||
json.decode(await prefs.getString(_key) ?? "{}"),
|
||||
(threadId) => threadId as String,
|
||||
(ids) => ISet.fromJson(ids, (id) => id as int),
|
||||
(ids) => .fromJson(ids, (id) => id as int),
|
||||
);
|
||||
|
||||
await prefs.setString(
|
||||
|
|
@ -33,7 +33,7 @@ class ShownNotificationsHelper(final Ref ref) {
|
|||
(shown) => shown.update(
|
||||
threadId,
|
||||
(ids) => ids.add(id),
|
||||
ifAbsent: () => ISet({id}),
|
||||
ifAbsent: () => .new({id}),
|
||||
),
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue