Move to desktop.sendSenderKey3 feature flag

This commit is contained in:
Scott Nonnenberg 2021-08-26 09:34:33 -07:00 committed by GitHub
parent 46f7025e41
commit ff4aa228f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ export type ConfigKeyType =
| 'desktop.screensharing2' | 'desktop.screensharing2'
| 'desktop.senderKey.send' | 'desktop.senderKey.send'
| 'desktop.senderKey.retry' | 'desktop.senderKey.retry'
| 'desktop.sendSenderKey2' | 'desktop.sendSenderKey3'
| 'desktop.storage' | 'desktop.storage'
| 'desktop.storageWrite3' | 'desktop.storageWrite3'
| 'global.calling.maxGroupCallRingSize' | 'global.calling.maxGroupCallRingSize'

View file

@ -147,7 +147,7 @@ export async function sendContentMessageToGroup({
const ourConversation = window.ConversationController.get(ourConversationId); const ourConversation = window.ConversationController.get(ourConversationId);
if ( if (
isEnabled('desktop.sendSenderKey2') && isEnabled('desktop.sendSenderKey3') &&
ourConversation?.get('capabilities')?.senderKey && ourConversation?.get('capabilities')?.senderKey &&
RemoteConfig.isEnabled('desktop.senderKey.send') && RemoteConfig.isEnabled('desktop.senderKey.send') &&
isGroupV2(conversation.attributes) isGroupV2(conversation.attributes)