Use minimal replacement class for MessageModel

This commit is contained in:
Scott Nonnenberg
2025-01-10 08:18:32 +10:00
committed by GitHub
parent 6b00cf756e
commit f846678b90
95 changed files with 3919 additions and 4457 deletions

View File

@@ -65,8 +65,7 @@ if (
)?.attributes;
},
getConversation: (id: string) => window.ConversationController.get(id),
getMessageById: (id: string) =>
window.MessageCache.__DEPRECATED$getById(id, 'SignalDebug'),
getMessageById: (id: string) => window.MessageCache.getById(id),
getMessageBySentAt: (timestamp: number) =>
window.MessageCache.findBySentAt(timestamp, () => true),
getReduxState: () => window.reduxStore.getState(),