Skip to content

Commit

Permalink
add typ header to discover feature creation messages (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk authored Jan 6, 2025
1 parent e72b3d0 commit d3e903d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/iden3comm/handlers/discovery-protocol.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PROTOCOL_MESSAGE_TYPE } from '../constants';
import { MediaType, PROTOCOL_MESSAGE_TYPE } from '../constants';

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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit d3e903d

Please sign in to comment.