diff --git a/ts/windows/main/start.ts b/ts/windows/main/start.ts index 2e47f0e464..0c8540a7ee 100644 --- a/ts/windows/main/start.ts +++ b/ts/windows/main/start.ts @@ -60,6 +60,8 @@ if (!isProduction(window.SignalContext.getVersion())) { getConversation: (id: string) => window.ConversationController.get(id), getMessageById: (id: string) => window.MessageCache.__DEPRECATED$getById(id), + getMessageBySentAt: (timestamp: number) => + window.MessageCache.findBySentAt(timestamp, () => true), getReduxState: () => window.reduxStore.getState(), getSfuUrl: () => window.Signal.Services.calling._sfuUrl, getIceServerOverride: () =>