init messageQueue in the ActionsPanel

This is to unsure that unsent messages in the pipeline are added to the
pipeline right when we start the app again
pull/1495/head
Audric Ackermann 4 years ago
parent 58cc6551e5
commit e92632285b

@ -20,6 +20,7 @@ import {
import { DAYS } from '../../session/utils/Number';
import { removeItemById } from '../../data/data';
import { OnionPaths } from '../../session/onions';
import { getMessageQueue } from '../../session/sending';
// tslint:disable-next-line: no-import-side-effect no-submodule-imports
export enum SectionType {
@ -63,6 +64,9 @@ class ActionsPanelPrivate extends React.Component<Props> {
// Initialize paths for onion requests
void OnionPaths.getInstance().buildNewOnionPaths();
}
// init the messageQueue. In the constructor, we had all not send messages
// this call does nothing except calling the constructor, which will continue sending message in the pipeline
getMessageQueue();
const theme = window.Events.getThemeSetting();
window.setTheme(theme);

Loading…
Cancel
Save