Fix some backup integration tests
This commit is contained in:
parent
c68be0f86e
commit
3a991822c5
33 changed files with 450 additions and 231 deletions
|
@ -20,7 +20,10 @@ import type { ConversationType } from '../../state/ducks/conversations';
|
|||
import type { PreferredBadgeSelectorType } from '../../state/selectors/badges';
|
||||
import { groupBy } from '../../util/mapUtil';
|
||||
import type { ContactNameColorType } from '../../types/Colors';
|
||||
import { SendStatus } from '../../messages/MessageSendState';
|
||||
import {
|
||||
SendStatus,
|
||||
type VisibleSendStatus,
|
||||
} from '../../messages/MessageSendState';
|
||||
import { WidthBreakpoint } from '../_util';
|
||||
import * as log from '../../logging/log';
|
||||
import { formatDateTimeLong } from '../../util/timestamp';
|
||||
|
@ -234,7 +237,7 @@ export function MessageDetail({
|
|||
}
|
||||
|
||||
function renderContactGroupHeaderText(
|
||||
sendStatus: undefined | SendStatus
|
||||
sendStatus: undefined | VisibleSendStatus
|
||||
): string {
|
||||
if (sendStatus === undefined) {
|
||||
return i18n('icu:from');
|
||||
|
@ -259,7 +262,7 @@ export function MessageDetail({
|
|||
}
|
||||
|
||||
function renderContactGroup(
|
||||
sendStatus: undefined | SendStatus,
|
||||
sendStatus: undefined | VisibleSendStatus,
|
||||
statusContacts: undefined | ReadonlyArray<Contact>
|
||||
): ReactNode {
|
||||
if (!statusContacts || !statusContacts.length) {
|
||||
|
@ -295,15 +298,17 @@ export function MessageDetail({
|
|||
|
||||
return (
|
||||
<div className="module-message-detail__contact-container">
|
||||
{[
|
||||
undefined,
|
||||
SendStatus.Failed,
|
||||
SendStatus.Viewed,
|
||||
SendStatus.Read,
|
||||
SendStatus.Delivered,
|
||||
SendStatus.Sent,
|
||||
SendStatus.Pending,
|
||||
].map(sendStatus =>
|
||||
{(
|
||||
[
|
||||
undefined,
|
||||
SendStatus.Failed,
|
||||
SendStatus.Viewed,
|
||||
SendStatus.Read,
|
||||
SendStatus.Delivered,
|
||||
SendStatus.Sent,
|
||||
SendStatus.Pending,
|
||||
] as Array<VisibleSendStatus | undefined>
|
||||
).map(sendStatus =>
|
||||
renderContactGroup(sendStatus, contactsBySendStatus.get(sendStatus))
|
||||
)}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue