You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
restrict to m.text for now
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -896,10 +896,8 @@ module.exports = React.createClass({
|
||||
return;
|
||||
}
|
||||
|
||||
const baseContent = Reply.getMRelatesTo(RoomViewStore.getQuotingEvent());
|
||||
|
||||
ContentMessages.sendContentToRoom(
|
||||
file, this.state.room.roomId, MatrixClientPeg.get(), baseContent,
|
||||
file, this.state.room.roomId, MatrixClientPeg.get(),
|
||||
).done(() => {
|
||||
dis.dispatch({
|
||||
action: 'message_sent',
|
||||
|
||||
@@ -853,6 +853,11 @@ export default class MessageComposerInput extends React.Component {
|
||||
dis.dispatch({
|
||||
action: 'message_sent',
|
||||
});
|
||||
// Once replies are not only for text, we can use message_sent for this
|
||||
dis.dispatch({
|
||||
action: 'reply_to_event',
|
||||
event: null,
|
||||
});
|
||||
}, (e) => onSendMessageFailed(e, this.props.room));
|
||||
|
||||
this.setState({
|
||||
|
||||
Reference in New Issue
Block a user