Don't peek group calls if feature flag is disabled

This commit is contained in:
Evan Hahn 2020-12-07 13:19:59 -06:00 committed by GitHub
parent c151d09088
commit ec35bdc3e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2655,9 +2655,11 @@ type WhatIsThis = import('./window.d').WhatIsThis;
if (data.message.groupCallUpdate) {
if (data.message.groupV2 && messageDescriptor.type === Message.GROUP) {
window.reduxActions.calling.peekNotConnectedGroupCall({
conversationId: messageDescriptor.id,
});
if (window.GROUP_CALLING) {
window.reduxActions.calling.peekNotConnectedGroupCall({
conversationId: messageDescriptor.id,
});
}
return Promise.resolve();
}
window.log.warn(