Make old message composer use new markdown
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>pull/21833/head
							parent
							
								
									35d70f0b35
								
							
						
					
					
						commit
						c819b433a2
					
				|  | @ -325,12 +325,13 @@ module.exports = React.createClass({ | |||
|         } | ||||
| 
 | ||||
|         if (send_markdown) { | ||||
|             const htmlText = mdown.toHTML(); | ||||
|             const htmlText = mdown.render(true); | ||||
|             sendMessagePromise = isEmote ? | ||||
|                 MatrixClientPeg.get().sendHtmlEmote(this.props.room.roomId, contentText, htmlText) : | ||||
|                 MatrixClientPeg.get().sendHtmlMessage(this.props.room.roomId, contentText, htmlText); | ||||
|         } | ||||
|         else { | ||||
|             const contentText = mdown.render(false); | ||||
|             sendMessagePromise = isEmote ? | ||||
|                 MatrixClientPeg.get().sendEmoteMessage(this.props.room.roomId, contentText) : | ||||
|                 MatrixClientPeg.get().sendTextMessage(this.props.room.roomId, contentText); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Johannes Löthberg
						Johannes Löthberg