mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-01-12 08:09:25 -05:00
not much better, some race condition exists. figuring that out.
This commit is contained in:
parent
ce4601b575
commit
f896fc822c
@ -41,11 +41,11 @@ class ContactInvitationListCubit
|
||||
final accountRecordKey =
|
||||
activeAccountInfo.userLogin.accountRecordInfo.accountRecord.recordKey;
|
||||
|
||||
final contactInvitationListRecordKey =
|
||||
final contactInvitationListRecordPointer =
|
||||
account.contactInvitationRecords.toVeilid();
|
||||
|
||||
final dhtRecord = await DHTShortArray.openOwned(
|
||||
contactInvitationListRecordKey,
|
||||
contactInvitationListRecordPointer,
|
||||
parent: accountRecordKey);
|
||||
|
||||
return dhtRecord;
|
||||
|
@ -24,7 +24,7 @@ class DHTShortArrayCubit<T> extends Cubit<DHTShortArrayBusyState<T>>
|
||||
_wantsCloseRecord = true;
|
||||
|
||||
// Make initial state update
|
||||
await _refreshNoWait();
|
||||
unawaited(_refreshNoWait());
|
||||
_subscription = await _shortArray.listen(_update);
|
||||
});
|
||||
}
|
||||
@ -37,7 +37,7 @@ class DHTShortArrayCubit<T> extends Cubit<DHTShortArrayBusyState<T>>
|
||||
super(const BlocBusyState(AsyncValue.loading())) {
|
||||
_initFuture = Future(() async {
|
||||
// Make initial state update
|
||||
await _refreshNoWait();
|
||||
unawaited(_refreshNoWait());
|
||||
_subscription = await shortArray.listen(_update);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user