Modernize DeliveryIssueDialog, fix outline clipping in Modal

This commit is contained in:
Scott Nonnenberg 2021-08-02 14:19:18 -07:00 committed by GitHub
parent 21ffb7c054
commit bcb9d2d2f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 154 additions and 127 deletions

View file

@ -242,6 +242,11 @@ export function getSource(
if (isIncoming(message)) {
return message.source;
}
if (!isOutgoing(message)) {
window.log.warn(
'message.getSource: Called for non-incoming/non-outoing message'
);
}
return ourNumber;
}
@ -255,6 +260,11 @@ export function getSourceDevice(
if (isIncoming(message)) {
return sourceDevice;
}
if (!isOutgoing(message)) {
window.log.warn(
'message.getSourceDevice: Called for non-incoming/non-outoing message'
);
}
return sourceDevice || ourDeviceId;
}
@ -266,6 +276,11 @@ export function getSourceUuid(
if (isIncoming(message)) {
return message.sourceUuid;
}
if (!isOutgoing(message)) {
window.log.warn(
'message.getSourceUuid: Called for non-incoming/non-outoing message'
);
}
return ourUuid;
}