set aria label on main composer too

This commit is contained in:
Bruno Windels 2019-08-06 17:22:26 +02:00
parent cfbd2e9cc8
commit e2e4ea493f
2 changed files with 4 additions and 1 deletions

View file

@ -24,6 +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';
function createMessageContent(model, editedEvent) {
const body = textSerialize(model);
@ -69,7 +70,7 @@ export default class SendMessageComposer extends React.Component {
}
}
_sendMessage = () => {
_sendMessage() {
const {roomId} = this.props.room;
this.context.matrixClient.sendMessage(roomId, createMessageContent(this.model));
this.model.reset([]);
@ -98,6 +99,7 @@ export default class SendMessageComposer extends React.Component {
ref={this._setEditorRef}
model={this.model}
room={this.props.room}
label={_t("Send message")}
/>
</div>
);

View file

@ -923,6 +923,7 @@
"This Room": "This Room",
"All Rooms": "All Rooms",
"Search…": "Search…",
"Send message": "Send message",
"Failed to connect to integrations server": "Failed to connect to integrations server",
"No integrations server is configured to manage stickers with": "No integrations server is configured to manage stickers with",
"You don't currently have any stickerpacks enabled": "You don't currently have any stickerpacks enabled",