Fix SMS-only check for unregistered convo
This commit is contained in:
parent
373ffe4663
commit
6e19383a7d
2 changed files with 22 additions and 6 deletions
|
@ -1,8 +1,6 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { isConversationUnregistered } from './isConversationUnregistered';
|
||||
|
||||
export type MinimalConversationType = Readonly<{
|
||||
type?: string;
|
||||
e164?: string;
|
||||
|
@ -23,5 +21,5 @@ export function isConversationSMSOnly(
|
|||
return true;
|
||||
}
|
||||
|
||||
return isConversationUnregistered(conversation);
|
||||
return conversation.discoveredUnregisteredAt !== undefined;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue