mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Support for GV1 -> GV2 migration
This commit is contained in:
committed by
Josh Perez
parent
a0baa3e03f
commit
2c69f2c367
@@ -42,6 +42,10 @@ import {
|
||||
GroupV2Change,
|
||||
PropsDataType as GroupV2ChangeProps,
|
||||
} from './GroupV2Change';
|
||||
import {
|
||||
GroupV1Migration,
|
||||
PropsDataType as GroupV1MigrationProps,
|
||||
} from './GroupV1Migration';
|
||||
import { SmartContactRendererType } from '../../groupChange';
|
||||
import { ResetSessionNotification } from './ResetSessionNotification';
|
||||
import {
|
||||
@@ -85,6 +89,10 @@ type GroupV2ChangeType = {
|
||||
type: 'groupV2Change';
|
||||
data: GroupV2ChangeProps;
|
||||
};
|
||||
type GroupV1MigrationType = {
|
||||
type: 'groupV1Migration';
|
||||
data: GroupV1MigrationProps;
|
||||
};
|
||||
type ResetSessionNotificationType = {
|
||||
type: 'resetSessionNotification';
|
||||
data: null;
|
||||
@@ -97,6 +105,7 @@ type ProfileChangeNotificationType = {
|
||||
export type TimelineItemType =
|
||||
| CallHistoryType
|
||||
| GroupNotificationType
|
||||
| GroupV1MigrationType
|
||||
| GroupV2ChangeType
|
||||
| LinkNotificationType
|
||||
| MessageType
|
||||
@@ -187,6 +196,10 @@ export class TimelineItem extends React.PureComponent<PropsType> {
|
||||
i18n={i18n}
|
||||
/>
|
||||
);
|
||||
} else if (item.type === 'groupV1Migration') {
|
||||
notification = (
|
||||
<GroupV1Migration {...this.props} {...item.data} i18n={i18n} />
|
||||
);
|
||||
} else if (item.type === 'resetSessionNotification') {
|
||||
notification = (
|
||||
<ResetSessionNotification {...this.props} {...item.data} i18n={i18n} />
|
||||
|
||||
Reference in New Issue
Block a user