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();
|
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,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user