Skip to content

Commit

Permalink
fix(mvp/contact-request): wrong properties access in incomingContactR…
Browse files Browse the repository at this point in the history
…equest.ts
  • Loading branch information
n0izn0iz committed Feb 5, 2020
1 parent f709044 commit 69cf59f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/packages/store/chat/incomingContactRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ const eventHandler = createSlice<State, {}>({
[protocol.events.client.accountContactRequestIncomingAccepted.type]: (state, { payload }) => {
const aggregateId = getAggregateId({
accountId: payload.aggregateId,
contactPk: payload.contactPk,
contactPk: payload.event.contactPk,
})
state.aggregates[aggregateId].accepted = true
return state
},
[protocol.events.client.accountContactRequestIncomingDiscarded.type]: (state, { payload }) => {
const aggregateId = getAggregateId({
accountId: payload.aggregateId,
contactPk: payload.contactPk,
contactPk: payload.event.contactPk,
})
state.aggregates[aggregateId].discarded = true
return state
Expand Down

0 comments on commit 69cf59f

Please sign in to comment.