mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-06-01 12:34:19 -04:00
contact invitation algorithm
This commit is contained in:
parent
c35056f687
commit
f52094c105
43 changed files with 1319 additions and 451 deletions
|
@ -131,8 +131,8 @@ extension IdentityMasterExtension on IdentityMaster {
|
|||
// Create new account to insert into identity
|
||||
await (await pool.create(parent: identityRec.key))
|
||||
.deleteScope((accountRec) async {
|
||||
// Make empty contact request list
|
||||
final contactRequests = await (await DHTShortArray.create())
|
||||
// Make empty contact invitation record list
|
||||
final contactInvitationRecords = await (await DHTShortArray.create())
|
||||
.scope((r) => r.record.ownedDHTRecordPointer);
|
||||
|
||||
// Make account object
|
||||
|
@ -140,7 +140,7 @@ extension IdentityMasterExtension on IdentityMaster {
|
|||
..profile = (proto.Profile()
|
||||
..name = name
|
||||
..title = title)
|
||||
..contactRequests = contactRequests.toProto();
|
||||
..contactInvitationRecords = contactInvitationRecords.toProto();
|
||||
|
||||
// Write account key
|
||||
await accountRec.eventualWriteProtobuf(account);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue