Send and receive PniSignatureMessage
This commit is contained in:
parent
95be24e8f7
commit
00cfd92dd0
43 changed files with 1082 additions and 164 deletions
|
@ -1097,6 +1097,28 @@ export class ConversationController {
|
|||
}
|
||||
}
|
||||
|
||||
// For testing
|
||||
async _forgetE164(e164: string): Promise<void> {
|
||||
const { server } = window.textsecure;
|
||||
strictAssert(server, 'Server must be initialized');
|
||||
const { [e164]: pni } = await server.getUuidsForE164s([e164]);
|
||||
|
||||
log.info(`ConversationController: forgetting e164=${e164} pni=${pni}`);
|
||||
|
||||
const convos = [this.get(e164), this.get(pni)];
|
||||
|
||||
for (const convo of convos) {
|
||||
if (!convo) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
await removeConversation(convo.id);
|
||||
this._conversations.remove(convo);
|
||||
this._conversations.resetLookups();
|
||||
}
|
||||
}
|
||||
|
||||
private async doLoad(): Promise<void> {
|
||||
log.info('ConversationController: starting initial fetch');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue