mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-12-25 23:59:32 -05:00
base64 fix and turn off dht caching until we have background sync
This commit is contained in:
parent
c9653bab18
commit
d631b7308b
@ -20,7 +20,7 @@ class ChatSingleContactItemWidget extends ConsumerWidget {
|
|||||||
//final textTheme = theme.textTheme;
|
//final textTheme = theme.textTheme;
|
||||||
final scale = theme.extension<ScaleScheme>()!;
|
final scale = theme.extension<ScaleScheme>()!;
|
||||||
|
|
||||||
final activeChat = ref.watch(activeChatStateProvider).asData?.value;
|
final activeChat = ref.watch(activeChatStateProvider).value;
|
||||||
final remoteConversationRecordKey =
|
final remoteConversationRecordKey =
|
||||||
proto.TypedKeyProto.fromProto(contact.remoteConversationRecordKey);
|
proto.TypedKeyProto.fromProto(contact.remoteConversationRecordKey);
|
||||||
final selected = activeChat == remoteConversationRecordKey;
|
final selected = activeChat == remoteConversationRecordKey;
|
||||||
|
@ -54,7 +54,10 @@ class PasteInviteDialogState extends ConsumerState<PasteInviteDialog> {
|
|||||||
if (lastline <= firstline) {
|
if (lastline <= firstline) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final inviteDataBase64 = lines.sublist(firstline, lastline).join();
|
final inviteDataBase64 = lines
|
||||||
|
.sublist(firstline, lastline)
|
||||||
|
.join()
|
||||||
|
.replaceAll(RegExp(r'[^A-Za-z0-9\-_]'), '');
|
||||||
final inviteData = base64UrlNoPadDecode(inviteDataBase64);
|
final inviteData = base64UrlNoPadDecode(inviteDataBase64);
|
||||||
|
|
||||||
await validateInviteData(inviteData: inviteData);
|
await validateInviteData(inviteData: inviteData);
|
||||||
|
@ -15,7 +15,7 @@ class SignalStrengthMeterWidget extends ConsumerWidget {
|
|||||||
final scale = theme.extension<ScaleScheme>()!;
|
final scale = theme.extension<ScaleScheme>()!;
|
||||||
|
|
||||||
const iconSize = 16.0;
|
const iconSize = 16.0;
|
||||||
final connState = ref.watch(globalConnectionStateProvider).asData?.value;
|
final connState = ref.watch(globalConnectionStateProvider).value;
|
||||||
if (connState == null) {
|
if (connState == null) {
|
||||||
return const Icon(Icons.signal_cellular_off, size: iconSize);
|
return const Icon(Icons.signal_cellular_off, size: iconSize);
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ class RouterNotifier extends _$RouterNotifier implements Listenable {
|
|||||||
hasAnyAccount = await ref.watch(
|
hasAnyAccount = await ref.watch(
|
||||||
localAccountsProvider.selectAsync((data) => data.isNotEmpty),
|
localAccountsProvider.selectAsync((data) => data.isNotEmpty),
|
||||||
);
|
);
|
||||||
hasActiveChat = ref.watch(activeChatStateProvider).asData?.value != null;
|
hasActiveChat = ref.watch(activeChatStateProvider).value != null;
|
||||||
|
|
||||||
// When this notifier's state changes, inform GoRouter
|
// When this notifier's state changes, inform GoRouter
|
||||||
ref.listenSelf((_, __) {
|
ref.listenSelf((_, __) {
|
||||||
|
@ -18,16 +18,15 @@ Future<VeilidConfig> getVeilidChatConfig() async {
|
|||||||
config.copyWith(blockStore: config.blockStore.copyWith(delete: true));
|
config.copyWith(blockStore: config.blockStore.copyWith(delete: true));
|
||||||
}
|
}
|
||||||
|
|
||||||
// // xxx hack
|
return config.copyWith(
|
||||||
// config = config.copyWith(
|
capabilities: const VeilidConfigCapabilities(disable: ['DHTV', 'TUNL']),
|
||||||
// network: config.network.copyWith(
|
// network: config.network.copyWith(
|
||||||
// dht: config.network.dht.copyWith(
|
// dht: config.network.dht.copyWith(
|
||||||
// getValueCount: 3,
|
// getValueCount: 3,
|
||||||
// getValueFanout: 8,
|
// getValueFanout: 8,
|
||||||
// getValueTimeoutMs: 5000,
|
// getValueTimeoutMs: 5000,
|
||||||
// setValueCount: 4,
|
// setValueCount: 4,
|
||||||
// setValueFanout: 10,
|
// setValueFanout: 10,
|
||||||
// setValueTimeoutMs: 5000)));
|
// setValueTimeoutMs: 5000))
|
||||||
|
);
|
||||||
return config;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user