From e92632285b30a3af0ed604b59a7d1c561ba55c2e Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Mon, 22 Feb 2021 11:07:58 +1100 Subject: [PATCH] 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 --- ts/components/session/ActionsPanel.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ts/components/session/ActionsPanel.tsx b/ts/components/session/ActionsPanel.tsx index c7a72cefa..b834aa846 100644 --- a/ts/components/session/ActionsPanel.tsx +++ b/ts/components/session/ActionsPanel.tsx @@ -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 { // 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);