restore reply_to_event action

This commit is contained in:
Bruno Windels 2019-08-07 15:14:50 +02:00
parent e39c405c55
commit 71286b5610
2 changed files with 10 additions and 4 deletions

View file

@ -45,5 +45,10 @@ limitations under the License.
overflow-y: auto;
}
}
.mx_SendMessageComposer_overlayWrapper {
position: relative;
height: 0;
}
}

View file

@ -24,7 +24,7 @@ import {PartCreator} from '../../../editor/parts';
import EditorStateTransfer from '../../../utils/EditorStateTransfer';
import {MatrixClient} from 'matrix-js-sdk';
import BasicMessageComposer from "./BasicMessageComposer";
import { _t } from '../../../languageHandler';
import ReplyPreview from "./ReplyPreview";
function createMessageContent(model, editedEvent) {
const body = textSerialize(model);
@ -93,6 +93,7 @@ export default class SendMessageComposer extends React.Component {
onAction = (payload) => {
switch (payload.action) {
case 'reply_to_event':
case 'focus_composer':
this._editorRef.focus();
break;
@ -100,11 +101,11 @@ export default class SendMessageComposer extends React.Component {
};
render() {
// <div className="mx_MessageComposer_autocomplete_wrapper">
// </div>
//<ReplyPreview permalinkCreator={this.props.permalinkCreator} />
return (
<div className="mx_SendMessageComposer" onClick={this.focusComposer} onKeyDown={this._onKeyDown}>
<div className="mx_SendMessageComposer_overlayWrapper">
<ReplyPreview permalinkCreator={this.props.permalinkCreator} />
</div>
<BasicMessageComposer
ref={this._setEditorRef}
model={this.model}