mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 05:57:03 +09:00
Add record id as a field
This commit is contained in:
parent
296d0b9c6e
commit
b7aba63a38
2 changed files with 3 additions and 0 deletions
|
@ -402,6 +402,7 @@ func (st *AclState) applyRequestJoin(ch *aclrecordproto.AclAccountRequestJoin, r
|
|||
RequestIdentity: record.Identity,
|
||||
RequestMetadata: ch.Metadata,
|
||||
KeyRecordId: st.CurrentReadKeyId(),
|
||||
RecordId: record.Id,
|
||||
Type: RequestTypeJoin,
|
||||
}
|
||||
return nil
|
||||
|
@ -497,6 +498,7 @@ func (st *AclState) applyRequestRemove(ch *aclrecordproto.AclAccountRequestRemov
|
|||
st.requestRecords[record.Id] = RequestRecord{
|
||||
RequestIdentity: record.Identity,
|
||||
Type: RequestTypeRemove,
|
||||
RecordId: record.Id,
|
||||
}
|
||||
st.pendingRequests[mapKeyFromPubKey(record.Identity)] = record.Id
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue