From d3e903dc12fcea7711433212a9d1ce4289a4693c Mon Sep 17 00:00:00 2001 From: volodymyr-basiuk <31999965+volodymyr-basiuk@users.noreply.github.com> Date: Mon, 6 Jan 2025 16:21:34 +0200 Subject: [PATCH] add typ header to discover feature creation messages (#296) --- src/iden3comm/handlers/discovery-protocol.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/iden3comm/handlers/discovery-protocol.ts b/src/iden3comm/handlers/discovery-protocol.ts index a3714e0b..5d1e684c 100644 --- a/src/iden3comm/handlers/discovery-protocol.ts +++ b/src/iden3comm/handlers/discovery-protocol.ts @@ -1,4 +1,4 @@ -import { PROTOCOL_MESSAGE_TYPE } from '../constants'; +import { MediaType, PROTOCOL_MESSAGE_TYPE } from '../constants'; import { BasicMessage, IPackageManager, ProtocolMessage } from '../types'; @@ -62,6 +62,7 @@ export function createDiscoveryFeatureQueryMessage( return { id: uuidv4, thid: uuidv4, + typ: MediaType.PlainMessage, type: PROTOCOL_MESSAGE_TYPE.DISCOVERY_PROTOCOL_QUERIES_MESSAGE_TYPE, body: { queries @@ -91,6 +92,7 @@ export function createDiscoveryFeatureDiscloseMessage( const uuidv4 = uuid.v4(); return { id: uuidv4, + typ: MediaType.PlainMessage, thid: uuidv4, type: PROTOCOL_MESSAGE_TYPE.DISCOVERY_PROTOCOL_DISCLOSE_MESSAGE_TYPE, body: {