mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-27 11:53:23 +01:00
Co-authored-by: Yash <yash@signal.org> Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com> Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com> Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
17 lines
449 B
TypeScript
17 lines
449 B
TypeScript
// Copyright 2020 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
export async function toggleVerification(id: string): Promise<void> {
|
|
const contact = window.ConversationController.get(id);
|
|
if (contact) {
|
|
await contact.toggleVerified();
|
|
}
|
|
}
|
|
|
|
export async function reloadProfiles(id: string): Promise<void> {
|
|
const contact = window.ConversationController.get(id);
|
|
if (contact) {
|
|
await contact.getProfiles();
|
|
}
|
|
}
|