Skip to content

Commit

Permalink
Fix TS in codec and make replies easier to distinguish
Browse files Browse the repository at this point in the history
  • Loading branch information
nakajima committed Dec 1, 2023
1 parent d24af88 commit 50c438a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions example/src/ConversationScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1084,10 +1084,13 @@ function MessageContents({
const actualReplyContent = codec.decode(replyContent.content)

return (
<MessageContents
contentTypeId={replyContentType}
content={actualReplyContent}
/>
<View>
<Text style={{ color: 'gray' }}>Reply</Text>
<MessageContents
contentTypeId={replyContentType}
content={actualReplyContent}
/>
</View>
)
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib/NativeCodecs/ReplyCodec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
export type ReplyContent = {
reference: string
content: any
contentType: ContentTypeId
contentType: string
}

export class ReplyCodec implements NativeContentCodec<ReplyContent> {
Expand Down

0 comments on commit 50c438a

Please sign in to comment.