2020-10-30 20:34:04 +00:00
|
|
|
// Copyright 2020 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2020-06-26 00:08:58 +00:00
|
|
|
export async function toggleVerification(id: string): Promise<void> {
|
|
|
|
const contact = window.getConversations().get(id);
|
|
|
|
if (contact) {
|
|
|
|
await contact.toggleVerified();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function reloadProfiles(id: string): Promise<void> {
|
|
|
|
const contact = window.getConversations().get(id);
|
|
|
|
if (contact) {
|
2024-03-25 17:03:15 +00:00
|
|
|
await contact.getProfiles().catch(() => {
|
|
|
|
/* nothing to do here; logging already happened */
|
|
|
|
});
|
2020-06-26 00:08:58 +00:00
|
|
|
}
|
|
|
|
}
|