Skip to content

Commit

Permalink
fix: prevent truncating message timestamps when updating references t…
Browse files Browse the repository at this point in the history
…o deleted quoted message (#1141)
  • Loading branch information
MartinCupela committed Jul 3, 2023
1 parent 6209380 commit ab54f94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/channel_state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,9 @@ export class ChannelState<StreamChatGenerics extends ExtendableGenerics = Defaul
const parseMessage = (m: ReturnType<ChannelState<StreamChatGenerics>['formatMessage']>) =>
(({
...m,
created_at: m.created_at.toString(),
pinned_at: m.pinned_at?.toString(),
updated_at: m.updated_at?.toString(),
created_at: m.created_at.toISOString(),
pinned_at: m.pinned_at?.toISOString(),
updated_at: m.updated_at?.toISOString(),
} as unknown) as MessageResponse<StreamChatGenerics>);

this.messageSets.forEach((set) => {
Expand Down

0 comments on commit ab54f94

Please sign in to comment.