Fix window.SignalDebug.getMessage functions

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
automated-signal 2025-02-04 20:02:24 -06:00 committed by GitHub
parent 986a07adb3
commit 490b4288c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: () =>