mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-29 14:58:44 +10:00
Merge branch 'main' into dev-dbDevicePrefix
This commit is contained in:
@@ -61,6 +61,9 @@ class ChannelMessageStore {
|
|||||||
jsonString = legacyJsonString;
|
jsonString = legacyJsonString;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (jsonString == null || jsonString.isEmpty) {
|
||||||
|
jsonString = prefs.getString(keyFor);
|
||||||
|
}
|
||||||
if (jsonString == null || jsonString.isEmpty) {
|
if (jsonString == null || jsonString.isEmpty) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ class ChannelSettingsStore {
|
|||||||
final prefs = PrefsManager.instance;
|
final prefs = PrefsManager.instance;
|
||||||
final key = '$keyFor$channelIndex';
|
final key = '$keyFor$channelIndex';
|
||||||
final oldKey = '$_keyPrefix$channelIndex';
|
final oldKey = '$_keyPrefix$channelIndex';
|
||||||
bool? enabled = prefs.getBool(key);
|
bool? enabled = prefs.getBool(oldKey);
|
||||||
if (enabled == null) {
|
if (enabled == null) {
|
||||||
// Attempt migration from legacy unscoped key on first load
|
// Attempt migration from legacy unscoped key on first load
|
||||||
enabled = prefs.getBool(oldKey);
|
enabled = prefs.getBool(oldKey);
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ class CommunityStore {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (jsonString == null || jsonString.isEmpty) {
|
||||||
|
jsonString = prefs.getString(keyFor);
|
||||||
|
}
|
||||||
if (jsonString == null || jsonString.isEmpty) {
|
if (jsonString == null || jsonString.isEmpty) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,6 +31,9 @@ class ContactGroupStore {
|
|||||||
jsonString = legacyJsonString;
|
jsonString = legacyJsonString;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (jsonString == null || jsonString.isEmpty) {
|
||||||
|
jsonString = prefs.getString(keyFor);
|
||||||
|
}
|
||||||
if (jsonString == null || jsonString.isEmpty) {
|
if (jsonString == null || jsonString.isEmpty) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,6 +33,9 @@ class ContactStore {
|
|||||||
jsonString = legacyJsonString;
|
jsonString = legacyJsonString;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (jsonString == null || jsonString.isEmpty) {
|
||||||
|
jsonString = prefs.getString(keyFor);
|
||||||
|
}
|
||||||
if (jsonString == null || jsonString.isEmpty) {
|
if (jsonString == null || jsonString.isEmpty) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,6 +50,9 @@ class MessageStore {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (jsonString == null || jsonString.isEmpty) {
|
||||||
|
jsonString = prefs.getString(keyFor);
|
||||||
|
}
|
||||||
if (jsonString == null || jsonString.isEmpty) {
|
if (jsonString == null || jsonString.isEmpty) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,6 +45,9 @@ class UnreadStore {
|
|||||||
jsonString = legacyJsonString;
|
jsonString = legacyJsonString;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (jsonString == null || jsonString.isEmpty) {
|
||||||
|
jsonString = prefs.getString(keyFor);
|
||||||
|
}
|
||||||
if (jsonString == null || jsonString.isEmpty) {
|
if (jsonString == null || jsonString.isEmpty) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user