1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-19 05:22:13 +03:00

bring back composer send history and arrow up to edit previous message

This commit is contained in:
Bruno Windels
2019-08-20 17:18:46 +02:00
parent ca3539d53e
commit cc82353d8f
3 changed files with 84 additions and 46 deletions

View File

@@ -144,6 +144,10 @@ export default class BasicMessageEditor extends React.Component {
return this._lastCaret;
}
isSelectionCollapsed() {
return !this._lastSelection || this._lastSelection.isCollapsed;
}
isCaretAtStart() {
return this.getCaret().offset === 0;
}