From 50c438a24907abc4b4a8ced0ec094c0a1b0c531d Mon Sep 17 00:00:00 2001 From: Pat Nakajima Date: Fri, 1 Dec 2023 15:05:51 -0800 Subject: [PATCH] Fix TS in codec and make replies easier to distinguish --- example/src/ConversationScreen.tsx | 11 +++++++---- src/lib/NativeCodecs/ReplyCodec.ts | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/example/src/ConversationScreen.tsx b/example/src/ConversationScreen.tsx index fbf60e171..9a6e89809 100644 --- a/example/src/ConversationScreen.tsx +++ b/example/src/ConversationScreen.tsx @@ -1084,10 +1084,13 @@ function MessageContents({ const actualReplyContent = codec.decode(replyContent.content) return ( - + + Reply + + ) } diff --git a/src/lib/NativeCodecs/ReplyCodec.ts b/src/lib/NativeCodecs/ReplyCodec.ts index 807347f1b..10cecb4ce 100644 --- a/src/lib/NativeCodecs/ReplyCodec.ts +++ b/src/lib/NativeCodecs/ReplyCodec.ts @@ -7,7 +7,7 @@ import { export type ReplyContent = { reference: string content: any - contentType: ContentTypeId + contentType: string } export class ReplyCodec implements NativeContentCodec {