Removed gv1-migration
This commit is contained in:
parent
a0730dfaa4
commit
78ce34b9d3
3 changed files with 1 additions and 26 deletions
|
@ -2260,7 +2260,6 @@ export async function startApp(): Promise<void> {
|
|||
announcementGroup: true,
|
||||
giftBadges: true,
|
||||
'gv2-3': true,
|
||||
'gv1-migration': true,
|
||||
senderKey: true,
|
||||
changeNumber: true,
|
||||
stories: true,
|
||||
|
|
23
ts/groups.ts
23
ts/groups.ts
|
@ -2149,23 +2149,11 @@ export async function getGroupMigrationMembers(
|
|||
return null;
|
||||
}
|
||||
|
||||
let capabilities = contact.get('capabilities');
|
||||
|
||||
// Refresh our local data to be sure
|
||||
if (
|
||||
!capabilities?.['gv1-migration'] ||
|
||||
!contact.get('profileKeyCredential')
|
||||
) {
|
||||
if (!contact.get('profileKeyCredential')) {
|
||||
await contact.getProfiles();
|
||||
}
|
||||
|
||||
capabilities = contact.get('capabilities');
|
||||
if (!capabilities?.['gv1-migration']) {
|
||||
log.warn(
|
||||
`getGroupMigrationMembers/${logId}: membersV2 - member ${e164} is missing gv1-migration capability, skipping.`
|
||||
);
|
||||
return null;
|
||||
}
|
||||
if (!contact.get('profileKeyCredential')) {
|
||||
log.warn(
|
||||
`getGroupMigrationMembers/${logId}: membersV2 - no profileKeyCredential for ${e164}, skipping.`
|
||||
|
@ -2224,15 +2212,6 @@ export async function getGroupMigrationMembers(
|
|||
return null;
|
||||
}
|
||||
|
||||
const capabilities = contact.get('capabilities');
|
||||
if (!capabilities?.['gv1-migration']) {
|
||||
log.warn(
|
||||
`getGroupMigrationMembers/${logId}: pendingMembersV2 - member ${e164} is missing gv1-migration capability, skipping.`
|
||||
);
|
||||
droppedGV2MemberIds.push(conversationId);
|
||||
return null;
|
||||
}
|
||||
|
||||
if (conversationId === ourConversationId) {
|
||||
areWeInvited = true;
|
||||
}
|
||||
|
|
|
@ -609,7 +609,6 @@ export type WebAPIConnectType = {
|
|||
export type CapabilitiesType = {
|
||||
announcementGroup: boolean;
|
||||
giftBadges: boolean;
|
||||
'gv1-migration': boolean;
|
||||
senderKey: boolean;
|
||||
changeNumber: boolean;
|
||||
stories: boolean;
|
||||
|
@ -618,7 +617,6 @@ export type CapabilitiesUploadType = {
|
|||
announcementGroup: true;
|
||||
giftBadges: true;
|
||||
'gv2-3': true;
|
||||
'gv1-migration': true;
|
||||
senderKey: true;
|
||||
changeNumber: true;
|
||||
stories: true;
|
||||
|
@ -1856,7 +1854,6 @@ export function initialize({
|
|||
announcementGroup: true,
|
||||
giftBadges: true,
|
||||
'gv2-3': true,
|
||||
'gv1-migration': true,
|
||||
senderKey: true,
|
||||
changeNumber: true,
|
||||
stories: true,
|
||||
|
|
Loading…
Reference in a new issue