Partially working encryption

This commit is contained in:
Henry Hiles 2026-01-06 16:11:21 -05:00
commit 1539235d7d
No known key found for this signature in database
3 changed files with 18 additions and 4 deletions

View file

@ -1,6 +1,7 @@
import "dart:convert";
import "dart:io";
import "package:flutter/foundation.dart";
import "package:matrix/encryption.dart";
import "package:nexus/controllers/database_controller.dart";
import "package:vodozemac/vodozemac.dart" as vod;
import "package:flutter_vodozemac/flutter_vodozemac.dart" as fl_vod;
@ -25,6 +26,7 @@ class ClientController extends AsyncNotifier<Client> {
logLevel: kReleaseMode ? Level.warning : Level.verbose,
importantStateEvents: {"im.ponies.room_emotes"},
supportedLoginTypes: {AuthenticationTypes.password},
verificationMethods: {KeyVerificationMethod.emoji},
database: await MatrixSdkDatabase.init(
"nexus",
database: await ref.watch(DatabaseController.provider.future),
@ -52,6 +54,12 @@ class ClientController extends AsyncNotifier<Client> {
);
}
if (client.userID != null) {
// client.encryption?.keyVerificationManager.addRequest(
// KeyVerification(encryption: client.encryption!, userId: client.userID!),
// );
}
return client;
}