Fix hover/focus bg overriding active bg in ConversationList
Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
parent
d6cc067507
commit
17ea2b58de
8 changed files with 40 additions and 40 deletions
17
ts/util/ServiceId.ts
Normal file
17
ts/util/ServiceId.ts
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2023 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { Aci, Pni, ServiceId } from '@signalapp/libsignal-client';
|
||||
import type { AciString, PniString, ServiceIdString } from '../types/ServiceId';
|
||||
|
||||
export function toServiceIdObject(serviceId: ServiceIdString): ServiceId {
|
||||
return ServiceId.parseFromServiceIdString(serviceId);
|
||||
}
|
||||
|
||||
export function toAciObject(aci: AciString): Aci {
|
||||
return Aci.parseFromServiceIdString(aci);
|
||||
}
|
||||
|
||||
export function toPniObject(pni: PniString): Pni {
|
||||
return Pni.parseFromServiceIdString(pni);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue