Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#1933] Suggested Replies does not fit in messageInput #1935

Merged

Conversation

AudreyKj
Copy link
Contributor

@AudreyKj AudreyKj commented Jun 7, 2021

closes #1933
Screenshot 2021-06-07 at 13 30 09

@AudreyKj AudreyKj requested a review from stayprodio June 7, 2021 10:03
@github-actions github-actions bot added the fix label Jun 7, 2021
if (input) setInput('');

if (selectedTemplate) setSelectedTemplate(null);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here improved Ux: the newest selected templates or suggested reply is the one that gets selected in the input, overwriting any previously selected templates or suggested reply

@@ -18,7 +18,7 @@ const FormattedMessage = ({message}: FormattedMessageProps) => {
return <div />;
};

const isImageFromGoogleSource = (messageText: string) => {
const isImageFromGoogleSource = (messageText: string | undefined) => {
if (!messageText) return false;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix the type here, as messageText can be either a string or undefined

Copy link
Contributor

@stayprodio stayprodio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🙏

@AudreyKj AudreyKj merged commit bbf2cdf into develop Jun 8, 2021
@AudreyKj AudreyKj deleted the fix/1933-suggested-replies-does-not-fit-in-message-input branch June 8, 2021 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suggested Replies does not fit in messageInput
2 participants