Migrate schema to service ids
This commit is contained in:
parent
71958f8a01
commit
8b0da36caa
258 changed files with 4795 additions and 2613 deletions
|
@ -5,6 +5,7 @@ import Fuse from 'fuse.js';
|
|||
import { get } from 'lodash';
|
||||
|
||||
import type { ConversationType } from '../state/ducks/conversations';
|
||||
import type { ServiceIdString } from '../types/ServiceId';
|
||||
import { filter, map } from '../util/iterables';
|
||||
import { removeDiacritics } from '../util/removeDiacritics';
|
||||
|
||||
|
@ -67,9 +68,13 @@ export class MemberRepository {
|
|||
: undefined;
|
||||
}
|
||||
|
||||
getMemberByUuid(uuid?: string): ConversationType | undefined {
|
||||
return uuid
|
||||
? this.members.find(({ uuid: memberUuid }) => memberUuid === uuid)
|
||||
getMemberByServiceId(
|
||||
serviceId?: ServiceIdString
|
||||
): ConversationType | undefined {
|
||||
return serviceId
|
||||
? this.members.find(
|
||||
({ serviceId: memberServiceId }) => memberServiceId === serviceId
|
||||
)
|
||||
: undefined;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue