mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-12 00:59:52 +01:00
Composer: Fix sent messages disappearing when not connected
This commit is contained in:
parent
ab931dd3dd
commit
2a9f4f7d63
@ -726,9 +726,6 @@ const Composer: FC<OwnProps & StateProps & DispatchProps> = ({
|
||||
openCalendar();
|
||||
} else {
|
||||
void handleSend();
|
||||
requestAnimationFrame(() => {
|
||||
resetComposer();
|
||||
});
|
||||
}
|
||||
break;
|
||||
case MainButtonState.Record:
|
||||
@ -741,7 +738,7 @@ const Composer: FC<OwnProps & StateProps & DispatchProps> = ({
|
||||
break;
|
||||
}
|
||||
}, [
|
||||
mainButtonState, resetComposer, shouldSchedule, startRecordingVoice, handleEditComplete,
|
||||
mainButtonState, shouldSchedule, startRecordingVoice, handleEditComplete,
|
||||
activeVoiceRecording, openCalendar, pauseRecordingVoice, handleSend,
|
||||
]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user