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;
|
||||
},
|
||||
getConversation: (id: string) => window.ConversationController.get(id),
|
||||
getMessageById: (id: string) => window.MessageCache.getById(id),
|
||||
getMessageBySentAt: (timestamp: number) =>
|
||||
window.MessageCache.findBySentAt(timestamp, () => true),
|
||||
getMessageById: (id: string) => window.MessageCache.getById(id)?.attributes,
|
||||
getMessageBySentAt: async (timestamp: number) => {
|
||||
const message = await window.MessageCache.findBySentAt(
|
||||
timestamp,
|
||||
() => true
|
||||
);
|
||||
return message?.attributes;
|
||||
},
|
||||
getReduxState: () => window.reduxStore.getState(),
|
||||
getSfuUrl: () => window.Signal.Services.calling._sfuUrl,
|
||||
getIceServerOverride: () =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue