Improve message migration error handling
This commit is contained in:
parent
1620ccf3ab
commit
aac94b0217
5 changed files with 163 additions and 33 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue