Drop ContactRecords for our own ACI/PNI
This commit is contained in:
parent
e8d268b466
commit
7821a872bd
1 changed files with 5 additions and 1 deletions
|
@ -35,7 +35,7 @@ import {
|
|||
} from '../util/universalExpireTimer';
|
||||
import { ourProfileKeyService } from './ourProfileKey';
|
||||
import { isGroupV1, isGroupV2 } from '../util/whatTypeOfConversation';
|
||||
import { isValidUuid } from '../types/UUID';
|
||||
import { isValidUuid, UUID, UUIDKind } from '../types/UUID';
|
||||
import * as preferredReactionEmoji from '../reactions/preferredReactionEmoji';
|
||||
import { SignalService as Proto } from '../protobuf';
|
||||
import * as log from '../logging/log';
|
||||
|
@ -786,6 +786,10 @@ export async function mergeContactRecord(
|
|||
return { hasConflict: false, shouldDrop: true, details: ['invalid uuid'] };
|
||||
}
|
||||
|
||||
if (window.storage.user.getOurUuidKind(new UUID(uuid)) !== UUIDKind.Unknown) {
|
||||
return { hasConflict: false, shouldDrop: true, details: ['our own uuid'] };
|
||||
}
|
||||
|
||||
const id = window.ConversationController.ensureContactIds({
|
||||
e164,
|
||||
uuid,
|
||||
|
|
Loading…
Reference in a new issue