Fix window.SignalDebug.getMessage functions
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
parent
986a07adb3
commit
490b4288c8
1 changed files with 8 additions and 3 deletions
|
@ -66,9 +66,14 @@ if (
|
||||||
)?.attributes;
|
)?.attributes;
|
||||||
},
|
},
|
||||||
getConversation: (id: string) => window.ConversationController.get(id),
|
getConversation: (id: string) => window.ConversationController.get(id),
|
||||||
getMessageById: (id: string) => window.MessageCache.getById(id),
|
getMessageById: (id: string) => window.MessageCache.getById(id)?.attributes,
|
||||||
getMessageBySentAt: (timestamp: number) =>
|
getMessageBySentAt: async (timestamp: number) => {
|
||||||
window.MessageCache.findBySentAt(timestamp, () => true),
|
const message = await window.MessageCache.findBySentAt(
|
||||||
|
timestamp,
|
||||||
|
() => true
|
||||||
|
);
|
||||||
|
return message?.attributes;
|
||||||
|
},
|
||||||
getReduxState: () => window.reduxStore.getState(),
|
getReduxState: () => window.reduxStore.getState(),
|
||||||
getSfuUrl: () => window.Signal.Services.calling._sfuUrl,
|
getSfuUrl: () => window.Signal.Services.calling._sfuUrl,
|
||||||
getIceServerOverride: () =>
|
getIceServerOverride: () =>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue