Add an extra debug method
Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
parent
463e07f65e
commit
8fbcced59f
1 changed files with 5 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue