mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-27 05:38:12 +00:00
Fix window.SignalDebug.getMessage functions (#9699)
This commit is contained in:
@@ -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: () =>
|
||||
|
||||
Reference in New Issue
Block a user