Skip to content

Commit

Permalink
fix: Registered Connection Problem report message handler
Browse files Browse the repository at this point in the history
Signed-off-by: Dheeraj Budhiraja <[email protected]>
  • Loading branch information
dheerajbudhiraja committed May 19, 2023
1 parent 8a3f03e commit c3d7a8f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ Although Aries Framework JavaScript tries to follow the standards as described i

If you would like to contribute to the framework, please read the [Framework Developers README](/DEVREADME.md) and the [CONTRIBUTING](/CONTRIBUTING.md) guidelines. These documents will provide more information to get you started!

The Aries Framework JavaScript call takes place every week at Thursday, 14:00 UTC via [Zoom](https://zoom.us/j/92215586249?pwd=Vm5ZTGV4T0cwVEl4blh3MjBzYjVYZz09).
The Aries Framework JavaScript call takes place every week at Thursday, 6AM Pacific Time. See [World Time Buddy](https://www.worldtimebuddy.com/?qm=1&lid=5,2759794,8&h=5&date=2023-5-19&sln=9-10&hf=1) for the time in your timezone. The meeting is held on [Zoom](https://zoom.us/j/99751084865?pwd=TW1rU0FDVTBqUlhnWnY2NERkd1diZz09).
This meeting is for contributors to groom and plan the backlog, and discuss issues.
Meeting agendas and recordings can be found [here](https://wiki.hyperledger.org/display/ARIES/Framework+JS+Meetings).
Feel free to join!
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/modules/connections/ConnectionsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
DidExchangeResponseHandler,
TrustPingMessageHandler,
TrustPingResponseMessageHandler,
ConnectionProblemReportHandler
} from './handlers'
import { HandshakeProtocol } from './models'
import { ConnectionService } from './services/ConnectionService'
Expand Down Expand Up @@ -421,6 +422,7 @@ export class ConnectionsApi {
new ConnectionResponseHandler(this.connectionService, this.outOfBandService, this.didResolverService, this.config)
)
messageHandlerRegistry.registerMessageHandler(new AckMessageHandler(this.connectionService))
messageHandlerRegistry.registerMessageHandler(new ConnectionProblemReportHandler(this.connectionService));
messageHandlerRegistry.registerMessageHandler(
new TrustPingMessageHandler(this.trustPingService, this.connectionService)
)
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/modules/connections/handlers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export * from './TrustPingResponseMessageHandler'
export * from './DidExchangeRequestHandler'
export * from './DidExchangeResponseHandler'
export * from './DidExchangeCompleteHandler'
export * from "./ConnectionProblemReportHandler"
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,11 @@ export class ConnectionService {

connectionRecord.errorMessage = `${connectionProblemReportMessage.description.code} : ${connectionProblemReportMessage.description.en}`
await this.update(messageContext.agentContext, connectionRecord)

// Marking connection as abandoned in case of problem report from issuer agent
// TODO: Can be conditionally abandoned - Like if another user is scanning already used connection invite where issuer will send invite-already-used problem code.
await this.updateState(messageContext.agentContext,connectionRecord,DidExchangeState.Abandoned);

return connectionRecord
}

Expand Down

0 comments on commit c3d7a8f

Please sign in to comment.