mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-08-03 11:49:04 -04:00
refactor, use external libraries, and add integration test for veilid_support
This commit is contained in:
parent
e622b7f949
commit
25a6a00fcf
84 changed files with 626 additions and 3835 deletions
|
@ -48,7 +48,7 @@ class ConversationCubit extends Cubit<AsyncValue<ConversationState>> {
|
|||
final pool = DHTRecordPool.instance;
|
||||
final crypto = await _cachedConversationCrypto();
|
||||
final writer = _activeAccountInfo.conversationWriter;
|
||||
final record = await pool.openWrite(
|
||||
final record = await pool.openRecordWrite(
|
||||
_localConversationRecordKey!, writer,
|
||||
debugName: 'ConversationCubit::LocalConversation',
|
||||
parent: accountRecordKey,
|
||||
|
@ -67,7 +67,7 @@ class ConversationCubit extends Cubit<AsyncValue<ConversationState>> {
|
|||
// Open remote record key if it is specified
|
||||
final pool = DHTRecordPool.instance;
|
||||
final crypto = await _cachedConversationCrypto();
|
||||
final record = await pool.openRead(_remoteConversationRecordKey,
|
||||
final record = await pool.openRecordRead(_remoteConversationRecordKey,
|
||||
debugName: 'ConversationCubit::RemoteConversation',
|
||||
parent: accountRecordKey,
|
||||
crypto: crypto);
|
||||
|
@ -226,14 +226,14 @@ class ConversationCubit extends Cubit<AsyncValue<ConversationState>> {
|
|||
// Open with SMPL scheme for identity writer
|
||||
late final DHTRecord localConversationRecord;
|
||||
if (existingConversationRecordKey != null) {
|
||||
localConversationRecord = await pool.openWrite(
|
||||
localConversationRecord = await pool.openRecordWrite(
|
||||
existingConversationRecordKey, writer,
|
||||
debugName:
|
||||
'ConversationCubit::initLocalConversation::LocalConversation',
|
||||
parent: accountRecordKey,
|
||||
crypto: crypto);
|
||||
} else {
|
||||
localConversationRecord = await pool.create(
|
||||
localConversationRecord = await pool.createRecord(
|
||||
debugName:
|
||||
'ConversationCubit::initLocalConversation::LocalConversation',
|
||||
parent: accountRecordKey,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue