From a1029df901c37cb217b3663746a92c084291b507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Gon=C3=A7alves?= <8217676+RafaelGoncalves8@users.noreply.github.com> Date: Mon, 25 Oct 2021 17:21:59 -0300 Subject: [PATCH] Add history entry before completing emoji (#7007) Signed-off-by: Rafael Goncalves --- src/components/views/rooms/BasicMessageComposer.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/views/rooms/BasicMessageComposer.tsx b/src/components/views/rooms/BasicMessageComposer.tsx index 7f4f3c8ddf..f7621a6798 100644 --- a/src/components/views/rooms/BasicMessageComposer.tsx +++ b/src/components/views/rooms/BasicMessageComposer.tsx @@ -478,6 +478,8 @@ export default class BasicMessageEditor extends React.Component switch (autocompleteAction) { case AutocompleteAction.ForceComplete: case AutocompleteAction.Complete: + this.historyManager.ensureLastChangesPushed(this.props.model); + this.modifiedFlag = true; autoComplete.confirmCompletion(); handled = true; break;