Composer: Fix sent messages disappearing when not connected

This commit is contained in:
Alexander Zinchuk 2021-08-20 23:47:14 +03:00
parent ab931dd3dd
commit 2a9f4f7d63

View File

@ -726,9 +726,6 @@ const Composer: FC<OwnProps & StateProps & DispatchProps> = ({
openCalendar(); openCalendar();
} else { } else {
void handleSend(); void handleSend();
requestAnimationFrame(() => {
resetComposer();
});
} }
break; break;
case MainButtonState.Record: case MainButtonState.Record:
@ -741,7 +738,7 @@ const Composer: FC<OwnProps & StateProps & DispatchProps> = ({
break; break;
} }
}, [ }, [
mainButtonState, resetComposer, shouldSchedule, startRecordingVoice, handleEditComplete, mainButtonState, shouldSchedule, startRecordingVoice, handleEditComplete,
activeVoiceRecording, openCalendar, pauseRecordingVoice, handleSend, activeVoiceRecording, openCalendar, pauseRecordingVoice, handleSend,
]); ]);