Add history entry before completing emoji (#7007)

Signed-off-by: Rafael Goncalves <rafaelgoncalves@riseup.net>
pull/21833/head
Rafael Gonçalves 2021-10-25 17:21:59 -03:00 committed by GitHub
parent 92df0a35a9
commit a1029df901
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -478,6 +478,8 @@ export default class BasicMessageEditor extends React.Component<IProps, IState>
switch (autocompleteAction) {
case AutocompleteAction.ForceComplete:
case AutocompleteAction.Complete:
this.historyManager.ensureLastChangesPushed(this.props.model);
this.modifiedFlag = true;
autoComplete.confirmCompletion();
handled = true;
break;