Add an extra debug method

Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
Fedor Indutny 2024-08-20 16:40:03 -07:00 committed by GitHub
parent 463e07f65e
commit 8fbcced59f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,6 +52,11 @@ if (!isProduction(window.SignalContext.getVersion())) {
const SignalDebug = {
cdsLookup: (options: CdsLookupOptionsType) =>
window.textsecure.server?.cdsLookup(options),
getSelectedConversation: () => {
return window.ConversationController.get(
window.reduxStore.getState().conversations.selectedConversationId
);
},
getConversation: (id: string) => window.ConversationController.get(id),
getMessageById: (id: string) =>
window.MessageCache.__DEPRECATED$getById(id),