Skip to content

Commit d3e903d

Browse files
authoredJan 6, 2025··
add typ header to discover feature creation messages (#296)
1 parent e72b3d0 commit d3e903d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/iden3comm/handlers/discovery-protocol.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PROTOCOL_MESSAGE_TYPE } from '../constants';
1+
import { MediaType, PROTOCOL_MESSAGE_TYPE } from '../constants';
22

33
import { BasicMessage, IPackageManager, ProtocolMessage } from '../types';
44

@@ -62,6 +62,7 @@ export function createDiscoveryFeatureQueryMessage(
6262
return {
6363
id: uuidv4,
6464
thid: uuidv4,
65+
typ: MediaType.PlainMessage,
6566
type: PROTOCOL_MESSAGE_TYPE.DISCOVERY_PROTOCOL_QUERIES_MESSAGE_TYPE,
6667
body: {
6768
queries
@@ -91,6 +92,7 @@ export function createDiscoveryFeatureDiscloseMessage(
9192
const uuidv4 = uuid.v4();
9293
return {
9394
id: uuidv4,
95+
typ: MediaType.PlainMessage,
9496
thid: uuidv4,
9597
type: PROTOCOL_MESSAGE_TYPE.DISCOVERY_PROTOCOL_DISCLOSE_MESSAGE_TYPE,
9698
body: {

0 commit comments

Comments
 (0)
Please sign in to comment.