Skip to content

Commit

Permalink
feat: add plain text message support
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardzjl committed Aug 31, 2023
1 parent c4ba3bb commit 66e788e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions web/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ function App() {
message: "Something goes wrong, please try again later.",
});
break;
case "text":
dispatch({
type: "messageAdded",
id: payload.conversation,
message: { from: payload.from, content: payload.content },
});
break;
}
} catch (error) {
console.debug("not a json message", msg);
Expand Down

0 comments on commit 66e788e

Please sign in to comment.