Improve message migration error handling

This commit is contained in:
trevor-signal 2024-11-04 15:18:36 -05:00 committed by GitHub
parent 1620ccf3ab
commit aac94b0217
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 163 additions and 33 deletions

View file

@ -211,11 +211,6 @@ export function getSourceDevice(
if (isIncoming(message) || isStory(message)) {
return sourceDevice;
}
if (!isOutgoing(message)) {
log.warn(
'Message.getSourceDevice: Called for non-incoming/non-outgoing message'
);
}
return sourceDevice || window.textsecure.storage.user.getDeviceId();
}
@ -226,11 +221,6 @@ export function getSourceServiceId(
if (isIncoming(message) || isStory(message)) {
return message.sourceServiceId;
}
if (!isOutgoing(message)) {
log.warn(
'Message.getSourceServiceId: Called for non-incoming/non-outgoing message'
);
}
return window.textsecure.storage.user.getAci();
}