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;
}