mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 20:59:16 +00:00
feat: #14 allow multiline messages
This commit is contained in:
@@ -43,6 +43,8 @@ export const store = async (req: Request, res: Response): Promise<Response> => {
|
|||||||
|
|
||||||
const ticket = await ShowTicketService(ticketId);
|
const ticket = await ShowTicketService(ticketId);
|
||||||
|
|
||||||
|
console.log(body);
|
||||||
|
|
||||||
let sentMessage: WbotMessage;
|
let sentMessage: WbotMessage;
|
||||||
|
|
||||||
if (media) {
|
if (media) {
|
||||||
|
|||||||
@@ -326,7 +326,7 @@ const MessageInput = () => {
|
|||||||
disabled={recording || loading}
|
disabled={recording || loading}
|
||||||
onPaste={handleInputPaste}
|
onPaste={handleInputPaste}
|
||||||
onKeyPress={e => {
|
onKeyPress={e => {
|
||||||
if (loading) return;
|
if (loading || e.shiftKey) return;
|
||||||
else if (e.key === "Enter") {
|
else if (e.key === "Enter") {
|
||||||
handleSendMessage();
|
handleSendMessage();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ const useStyles = makeStyles(theme => ({
|
|||||||
display: "block",
|
display: "block",
|
||||||
position: "relative",
|
position: "relative",
|
||||||
|
|
||||||
|
whiteSpace: "pre-wrap",
|
||||||
backgroundColor: "#ffffff",
|
backgroundColor: "#ffffff",
|
||||||
color: "#303030",
|
color: "#303030",
|
||||||
alignSelf: "flex-start",
|
alignSelf: "flex-start",
|
||||||
@@ -145,6 +146,7 @@ const useStyles = makeStyles(theme => ({
|
|||||||
display: "block",
|
display: "block",
|
||||||
position: "relative",
|
position: "relative",
|
||||||
|
|
||||||
|
whiteSpace: "pre-wrap",
|
||||||
backgroundColor: "#dcf8c6",
|
backgroundColor: "#dcf8c6",
|
||||||
color: "#303030",
|
color: "#303030",
|
||||||
alignSelf: "flex-end",
|
alignSelf: "flex-end",
|
||||||
|
|||||||
Reference in New Issue
Block a user