mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 18:38:15 +01:00
Account for stories that are sometimes not found in the database
This commit is contained in:
@@ -47,7 +47,7 @@ export class MessageCache {
|
||||
const messageAttributes = this.accessAttributes(messageId);
|
||||
strictAssert(
|
||||
messageAttributes,
|
||||
`MessageCache.accessAttributesOrThrow/${source}: no message`
|
||||
`MessageCache.accessAttributesOrThrow/${source}: no message for id ${messageId}`
|
||||
);
|
||||
return messageAttributes;
|
||||
}
|
||||
@@ -131,7 +131,7 @@ export class MessageCache {
|
||||
|
||||
strictAssert(
|
||||
messageAttributesFromDatabase,
|
||||
`MessageCache.resolveAttributes/${source}: no message`
|
||||
`MessageCache.resolveAttributes/${source}: no message for id ${messageId}`
|
||||
);
|
||||
|
||||
return this.freezeAttributes(messageAttributesFromDatabase);
|
||||
|
||||
Reference in New Issue
Block a user