Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Add history entry before completing emoji (#7007)
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Goncalves <rafaelgoncalves@riseup.net>
  • Loading branch information
RafaelGoncalves8 authored Oct 25, 2021
1 parent 92df0a3 commit a1029df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/views/rooms/BasicMessageComposer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a1029df

Please sign in to comment.