mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-30 19:44:57 -04:00
updates
This commit is contained in:
parent
30d78513a8
commit
d39c9343b7
8 changed files with 35 additions and 41 deletions
|
@ -26,7 +26,7 @@ void _initVeilid() {
|
|||
logsInConsole: false),
|
||||
api: VeilidWASMConfigLoggingApi(
|
||||
enabled: true, level: VeilidConfigLogLevel.info)));
|
||||
Veilid.instance.initializeVeilidCore(platformConfig.json);
|
||||
Veilid.instance.initializeVeilidCore(platformConfig.toJson());
|
||||
} else {
|
||||
var platformConfig = VeilidFFIConfig(
|
||||
logging: VeilidFFIConfigLogging(
|
||||
|
@ -41,7 +41,7 @@ void _initVeilid() {
|
|||
serviceName: "VeilidChat"),
|
||||
api: VeilidFFIConfigLoggingApi(
|
||||
enabled: true, level: VeilidConfigLogLevel.info)));
|
||||
Veilid.instance.initializeVeilidCore(platformConfig.json);
|
||||
Veilid.instance.initializeVeilidCore(platformConfig.toJson());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -123,11 +123,11 @@ class Processor {
|
|||
} else if (update is VeilidUpdateNetwork) {
|
||||
await processUpdateNetwork(update);
|
||||
} else if (update is VeilidAppMessage) {
|
||||
log.info("AppMessage: ${update.json}");
|
||||
log.info("AppMessage: ${update.toJson()}");
|
||||
} else if (update is VeilidAppCall) {
|
||||
log.info("AppCall: ${update.json}");
|
||||
log.info("AppCall: ${update.toJson()}");
|
||||
} else {
|
||||
log.trace("Update: ${update.json}");
|
||||
log.trace("Update: ${update.toJson()}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,16 +1,3 @@
|
|||
import 'package:veilid/base64url_no_pad.dart';
|
||||
import 'package:veilid/veilid_encoding.dart';
|
||||
|
||||
bool isValidDHTKey(String key) {
|
||||
if (key.length != 43) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
var dec = base64UrlNoPadDecode(key);
|
||||
if (dec.length != 32) {
|
||||
return false;
|
||||
}
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
//xxx
|
Loading…
Add table
Add a link
Reference in a new issue