Modernize DeliveryIssueDialog, fix outline clipping in Modal
This commit is contained in:
parent
21ffb7c054
commit
bcb9d2d2f3
16 changed files with 154 additions and 127 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue