Migrate schema to service ids
This commit is contained in:
parent
71958f8a01
commit
8b0da36caa
258 changed files with 4795 additions and 2613 deletions
|
@ -5,10 +5,10 @@ import type { ConversationAttributesType } from '../model-types.d';
|
|||
import type { ServiceIdString } from '../types/ServiceId';
|
||||
|
||||
export function getSendTarget({
|
||||
uuid,
|
||||
serviceId,
|
||||
pni,
|
||||
}: Pick<ConversationAttributesType, 'uuid' | 'pni'>):
|
||||
}: Pick<ConversationAttributesType, 'serviceId' | 'pni'>):
|
||||
| ServiceIdString
|
||||
| undefined {
|
||||
return uuid || pni;
|
||||
return serviceId || pni;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue