Migration: Ensure that groupId lookup is kept up to date
This commit is contained in:
parent
2c69f2c367
commit
4bf5a24efb
2 changed files with 3 additions and 3 deletions
|
@ -904,7 +904,7 @@ export async function initiateMigrationToGroupV2(
|
|||
`initiateMigrationToGroupV2/${logId}: After members migration, we are not a member!`
|
||||
);
|
||||
}
|
||||
if (!areWeInvited) {
|
||||
if (areWeInvited) {
|
||||
throw new Error(
|
||||
`initiateMigrationToGroupV2/${logId}: After members migration, we are invited!`
|
||||
);
|
||||
|
|
|
@ -4332,7 +4332,7 @@ window.Whisper.ConversationCollection = window.Backbone.Collection.extend({
|
|||
delete this._byUuid[oldValue];
|
||||
}
|
||||
if (idProp === 'groupId') {
|
||||
delete this._byGroupid[oldValue];
|
||||
delete this._byGroupId[oldValue];
|
||||
}
|
||||
}
|
||||
if (model.get('e164')) {
|
||||
|
@ -4342,7 +4342,7 @@ window.Whisper.ConversationCollection = window.Backbone.Collection.extend({
|
|||
this._byUuid[model.get('uuid')] = model;
|
||||
}
|
||||
if (model.get('groupId')) {
|
||||
this._byGroupid[model.get('groupId')] = model;
|
||||
this._byGroupId[model.get('groupId')] = model;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue