Fix window.SignalDebug.getMessage functions (#9699)

This commit is contained in:
Scott Nonnenberg 2025-02-04 07:08:47 +10:00 committed by GitHub
parent 68ab4bd0d9
commit 74acb3a2dd
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: () =>