Skip to content

Commit

Permalink
Attempt to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
murtaza98 committed Jul 21, 2022
1 parent 9f1306f commit 8f17ec4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/livechat/src/lib/room.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,7 @@ Livechat.onMessage(async (message) => {
message = transformAgentInformationOnMessage(message);

await store.setState({
messages: upsert(
store.state.messages,
message,
({ _id }) => _id === message._id,
({ ts }) => ts,
),
messages: upsert(store.state.messages, message, ({ _id }) => _id === message._id, ({ ts }) => ts),
});

await processMessage(message);
Expand Down

0 comments on commit 8f17ec4

Please sign in to comment.