-
Notifications
You must be signed in to change notification settings - Fork 136
Empty msg break #4253
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
Empty msg break #4253
Conversation
|
Thanks, @sanju-singh. I didn't test it yet, but looking at the source code I have one concern. It seems that error would be catched inside |
|
@maxceem ,
I have tested it by throwing the error from markdownToHtml method. And it is working as expected. |
|
@sanju-singh thanks for the detailed explanation. Though as per my testing the error message is not shown when it suppose to be shown. Imagine, that we don't fix the error with rendering empty messages, I comment the next lines: So now, when empty message is rendered I'm expecting to see:
Another way for testing it. Imagine that method Now if, open a message I would see the message rendered as a raw text, which is correct. But when we render raw message instead of formatted message, we have to show an error message: |
|
@maxceem ,
For above mentioned case.
Conclusion: Solution is working as expected with both the above suggested approach. Blockquote renders like raw text only . Please check with other markdown formatting like: bold, list etc. |
|
@sanju-singh Thank you, got it now. The task is fixed correctly as per the initial description. Though it reveled one more issue. The method It would be good in such a case to show the same error message during editing like this: If you like you may fix this case as a separate issue #4257 - price $40. And the current issue is fixed and accepted. |
|
@maxceem , Showing error here will be somewhat difficult, as markdownToState method return signature doesn't allow passing error and we are handling the error there itself. let me know if you still think that we should show error there? I will see for a better solution. |
|
@sanju-singh Thank you for sharing your thoughts. Let me think about it a little bit more. |








Add error message when message could not be rendered.