restore reply_to_event action
This commit is contained in:
parent
e39c405c55
commit
71286b5610
2 changed files with 10 additions and 4 deletions
|
@ -45,5 +45,10 @@ limitations under the License.
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mx_SendMessageComposer_overlayWrapper {
|
||||||
|
position: relative;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ import {PartCreator} from '../../../editor/parts';
|
||||||
import EditorStateTransfer from '../../../utils/EditorStateTransfer';
|
import EditorStateTransfer from '../../../utils/EditorStateTransfer';
|
||||||
import {MatrixClient} from 'matrix-js-sdk';
|
import {MatrixClient} from 'matrix-js-sdk';
|
||||||
import BasicMessageComposer from "./BasicMessageComposer";
|
import BasicMessageComposer from "./BasicMessageComposer";
|
||||||
import { _t } from '../../../languageHandler';
|
import ReplyPreview from "./ReplyPreview";
|
||||||
|
|
||||||
function createMessageContent(model, editedEvent) {
|
function createMessageContent(model, editedEvent) {
|
||||||
const body = textSerialize(model);
|
const body = textSerialize(model);
|
||||||
|
@ -93,6 +93,7 @@ export default class SendMessageComposer extends React.Component {
|
||||||
|
|
||||||
onAction = (payload) => {
|
onAction = (payload) => {
|
||||||
switch (payload.action) {
|
switch (payload.action) {
|
||||||
|
case 'reply_to_event':
|
||||||
case 'focus_composer':
|
case 'focus_composer':
|
||||||
this._editorRef.focus();
|
this._editorRef.focus();
|
||||||
break;
|
break;
|
||||||
|
@ -100,11 +101,11 @@ export default class SendMessageComposer extends React.Component {
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
// <div className="mx_MessageComposer_autocomplete_wrapper">
|
|
||||||
// </div>
|
|
||||||
//<ReplyPreview permalinkCreator={this.props.permalinkCreator} />
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_SendMessageComposer" onClick={this.focusComposer} onKeyDown={this._onKeyDown}>
|
<div className="mx_SendMessageComposer" onClick={this.focusComposer} onKeyDown={this._onKeyDown}>
|
||||||
|
<div className="mx_SendMessageComposer_overlayWrapper">
|
||||||
|
<ReplyPreview permalinkCreator={this.props.permalinkCreator} />
|
||||||
|
</div>
|
||||||
<BasicMessageComposer
|
<BasicMessageComposer
|
||||||
ref={this._setEditorRef}
|
ref={this._setEditorRef}
|
||||||
model={this.model}
|
model={this.model}
|
||||||
|
|
Loading…
Reference in a new issue