Skip to content

Commit 3d0fa98

Browse files
committed
Cleaner
1 parent 187f139 commit 3d0fa98

File tree

2 files changed

+16
-22
lines changed

2 files changed

+16
-22
lines changed

ios/Podfile.lock

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -84,21 +84,21 @@ EXTERNAL SOURCES:
8484
:path: ".symlinks/plugins/sqflite_darwin/darwin"
8585

8686
SPEC CHECKSUMS:
87-
audio_session: 9bb7f6c970f21241b19f5a3658097ae459681ba0
88-
emoji_picker_flutter: ece213fc274bdddefb77d502d33080dc54e616cc
87+
audio_session: 19e9480dbdd4e5f6c4543826b2e8b0e4ab6145fe
88+
emoji_picker_flutter: 8e50ec5caac456a23a78637e02c6293ea0ac8771
8989
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
90-
flutter_native_splash: c32d145d68aeda5502d5f543ee38c192065986cf
91-
flutter_secure_storage: 1ed9476fba7e7a782b22888f956cce43e2c62f13
92-
image_picker_ios: 7fe1ff8e34c1790d6fff70a32484959f563a928a
93-
integration_test: 4a889634ef21a45d28d50d622cf412dc6d9f586e
94-
just_audio: 4e391f57b79cad2b0674030a00453ca5ce817eed
95-
mobile_scanner: 9157936403f5a0644ca3779a38ff8404c5434a93
96-
package_info_plus: af8e2ca6888548050f16fa2f1938db7b5a5df499
97-
path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564
98-
rust_lib_whitenoise: 22de658398f8e36a1a396d35b6b6547a0732e6bb
99-
share_plus: 50da8cb520a8f0f65671c6c6a99b3617ed10a58a
100-
shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7
101-
sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0
90+
flutter_native_splash: df59bb2e1421aa0282cb2e95618af4dcb0c56c29
91+
flutter_secure_storage: d33dac7ae2ea08509be337e775f6b59f1ff45f12
92+
image_picker_ios: c560581cceedb403a6ff17f2f816d7fea1421fc1
93+
integration_test: 252f60fa39af5e17c3aa9899d35d908a0721b573
94+
just_audio: a42c63806f16995daf5b219ae1d679deb76e6a79
95+
mobile_scanner: 77265f3dc8d580810e91849d4a0811a90467ed5e
96+
package_info_plus: c0502532a26c7662a62a356cebe2692ec5fe4ec4
97+
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
98+
rust_lib_whitenoise: 69ef24b69b2aba78a7ebabc09a504b5a39177d21
99+
share_plus: 8b6f8b3447e494cca5317c8c3073de39b3600d1f
100+
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
101+
sqflite_darwin: 5a7236e3b501866c1c9befc6771dfd73ffb8702d
102102

103103
PODFILE CHECKSUM: 251cb053df7158f337c0712f2ab29f4e0fa474ce
104104

lib/config/providers/metadata_cache_provider.dart

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,15 @@ class MetadataCacheNotifier extends Notifier<MetadataCacheState> {
6060

6161
@override
6262
MetadataCacheState build() {
63-
// Listen for active account changes to invalidate cache when metadata changes
63+
// Listen for active account changes to keep cache in sync with latest metadata
6464
ref.listen(activeAccountProvider, (previous, next) {
6565
next.when(
6666
data: (activeAccountState) {
6767
final account = activeAccountState.account;
6868
final metadata = activeAccountState.metadata;
6969

7070
if (account != null && metadata != null) {
71-
// Check if this is a metadata update (previous had same account but different metadata)
72-
previous?.whenData((prevState) {
73-
if (prevState.account?.pubkey == account.pubkey) {
74-
// Same account but potentially different metadata - update cache
75-
_updateCacheForActiveAccount(account.pubkey, metadata);
76-
}
77-
});
71+
_updateCacheForActiveAccount(account.pubkey, metadata);
7872
}
7973
},
8074
loading: () {},

0 commit comments

Comments
 (0)