From 3f195ef4fe06603c728b63b6c943f5411001ae39 Mon Sep 17 00:00:00 2001 From: Vjera Turk Date: Tue, 3 Sep 2024 12:27:29 +0200 Subject: [PATCH] ActivityProductInfoRequest and ActivityProductInfoResponse to UnmarshalContent --- internal/matrix/types.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/matrix/types.go b/internal/matrix/types.go index fa1472d3..0d3ba404 100644 --- a/internal/matrix/types.go +++ b/internal/matrix/types.go @@ -38,6 +38,12 @@ func (m *CaminoMatrixMessage) UnmarshalContent(src []byte) error { case messaging.ActivityProductListResponse: m.Content.ResponseContent.ActivityProductListResponse = &activityv1.ActivityProductListResponse{} return proto.Unmarshal(src, m.Content.ResponseContent.ActivityProductListResponse) + case messaging.ActivityProductInfoRequest: + m.Content.RequestContent.ActivityProductInfoRequest = &activityv1.ActivityProductInfoRequest{} + return proto.Unmarshal(src, m.Content.RequestContent.ActivityProductInfoRequest) + case messaging.ActivityProductInfoResponse: + m.Content.ResponseContent.ActivityProductInfoResponse = &activityv1.ActivityProductInfoResponse{} + return proto.Unmarshal(src, m.Content.ResponseContent.ActivityProductInfoResponse) case messaging.ActivitySearchRequest: m.Content.RequestContent.ActivitySearchRequest = &activityv1.ActivitySearchRequest{} return proto.Unmarshal(src, m.Content.RequestContent.ActivitySearchRequest)