messages work

This commit is contained in:
Christien Rioux 2024-02-08 20:35:59 -05:00
parent f2caa7a0b3
commit 09ae8ff6bb
15 changed files with 246 additions and 414 deletions

View file

@ -330,17 +330,20 @@ class ContactInvitationListCubit
final remoteConversationRecordKey = proto.TypedKeyProto.fromProto(
contactResponse.remoteConversationRecordKey);
final conversation = ConversationManager(
final conversation = ConversationCubit(
activeAccountInfo: _activeAccountInfo,
remoteIdentityPublicKey:
contactIdentityMaster.identityPublicTypedKey(),
remoteConversationRecordKey: remoteConversationRecordKey);
await conversation.refresh();
final remoteConversation = await conversation.readRemoteConversation();
final remoteConversation =
conversation.state.data?.value.remoteConversation;
if (remoteConversation == null) {
log.info('Remote conversation could not be read. Waiting...');
return null;
}
// Complete the local conversation now that we have the remote profile
final localConversationRecordKey = proto.TypedKeyProto.fromProto(
contactInvitationRecord.localConversationRecordKey);

View file

@ -42,7 +42,7 @@ class ValidContactInvitation {
.maybeDeleteScope(!isSelf, (contactRequestInbox) async {
// Create local conversation key for this
// contact and send via contact response
final conversation = ConversationManager(
final conversation = ConversationCubit(
activeAccountInfo: _activeAccountInfo,
remoteIdentityPublicKey:
_contactIdentityMaster.identityPublicTypedKey());