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

[GH-240]:Fixed issue #240 edited the pretext of custom post #287

Merged
merged 4 commits into from
Oct 27, 2023

Conversation

Kshitij-Katiyar
Copy link
Contributor

Summary

  • Users could not edit the post's pretext message for starting a new zoom meeting due to a hardcoded message.
  • This PR contains all the changes from Pr #248 So this PR alone is enough to fix this issue so we can close Pr #248 afterward.

Issue

@mattermost-build
Copy link
Contributor

Hello @Kshitij-Katiyar,

Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

@larkox larkox requested a review from mickmister February 28, 2023 09:32
@codecov
Copy link

codecov bot commented Feb 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f50692b) 19.33% compared to head (582b298) 19.33%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #287   +/-   ##
=======================================
  Coverage   19.33%   19.33%           
=======================================
  Files           9        9           
  Lines        1479     1479           
=======================================
  Hits          286      286           
  Misses       1138     1138           
  Partials       55       55           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -79,7 +79,7 @@ export default class PostTypeZoom extends React.PureComponent {
let content;
let subtitle;
if (props.meeting_status === 'STARTED') {
preText = 'I have started a meeting';
preText = post.message;
Copy link
Contributor

Choose a reason for hiding this comment

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

Note that these are originally set by

post.Message = "The meeting has ended."

and

post.Message = "The meeting has ended."

@mickmister mickmister added the 3: QA Review Requires review by a QA tester label Feb 28, 2023
@hanzei
Copy link
Collaborator

hanzei commented Mar 9, 2023

/update-branch

@mattermost-build
Copy link
Contributor

We don't have permissions to update this PR, please contact the submitter to apply the update.

@Kshitij-Katiyar
Copy link
Contributor Author

/update-branch

@hanzei synced with master

@mattermost-build
Copy link
Contributor

We don't have permissions to update this PR, please contact the submitter to apply the update.

@mattermost-build
Copy link
Contributor

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

@hanzei
Copy link
Collaborator

hanzei commented Oct 10, 2023

@AayushChaudhary0001 Can you please review this PR?

Copy link
Contributor

@AayushChaudhary0001 AayushChaudhary0001 left a comment

Choose a reason for hiding this comment

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

@hanzei @Kshitij-Katiyar Tested this PR, working fine for text messages, but not supporting emoji's and GiF's if added in the message
image

image

@mickmister
Copy link
Contributor

To render the markdown using the webapp's markdown logic, we can use the webapp's exposed functions formatText and messageHtmlToComponent

https://github.com/mattermost/mattermost-plugin-ai/blob/6f5c45ccbf3bb262fb6710bdc6a08838ff47e5cc/webapp/src/components/post_text.tsx#L43-L47

    const text = messageHtmlToComponent(
        formatText(props.message, markdownOptions),
        true,
        messageHtmlToComponentOptions,
    );

    return (
        <div>
            {text}
        </div>
    );

@hanzei hanzei removed the request for review from DHaussermann October 16, 2023 20:39
@hanzei hanzei added the Awaiting Submitter Action Blocked on the author label Oct 16, 2023
@avas27JTG avas27JTG removed the Awaiting Submitter Action Blocked on the author label Oct 26, 2023
@avas27JTG
Copy link
Contributor

@hanzei @Kshitij-Katiyar Tested this PR, working fine for text messages, but not supporting emoji's and GiF's if added in the message image

image

@AayushChaudhary0001 this has been fixed.

Copy link
Contributor

@AayushChaudhary0001 AayushChaudhary0001 left a comment

Choose a reason for hiding this comment

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

Tested and approved
Working fine for emoji's and reactions, LGTM!

@hanzei hanzei added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester labels Oct 27, 2023
@hanzei hanzei added this to the v2.0.0 milestone Oct 27, 2023
@hanzei
Copy link
Collaborator

hanzei commented Oct 27, 2023

@Kshitij-Katiyar Please merge master into your PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

zoom meeting message is not edited.
7 participants