Consolidate checks for v2 Groups
This commit is contained in:
parent
c3ddedfde1
commit
cf9764c85a
5 changed files with 13 additions and 11 deletions
|
@ -166,7 +166,7 @@ export async function toAccountRecord(
|
|||
pinnedConversationRecord.legacyGroupId = fromEncodedBinaryToArrayBuffer(
|
||||
groupId
|
||||
);
|
||||
} else if ((pinnedConversation.get('groupVersion') || 0) > 1) {
|
||||
} else if (pinnedConversation.isGroupV2()) {
|
||||
pinnedConversationRecord.identifier = 'groupMasterKey';
|
||||
const masterKey = pinnedConversation.get('masterKey');
|
||||
if (!masterKey) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue