Conversation header: fix check if anyone else is in the call

This commit is contained in:
Evan Hahn 2021-08-18 19:14:30 -05:00 committed by GitHub
parent f5a85a0488
commit 778c8b4220
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@ import {
getConversationCallMode, getConversationCallMode,
} from '../ducks/conversations'; } from '../ducks/conversations';
import { getActiveCall, isAnybodyElseInGroupCall } from '../ducks/calling'; import { getActiveCall, isAnybodyElseInGroupCall } from '../ducks/calling';
import { getUserConversationId, getIntl } from '../selectors/user'; import { getUserUuid, getIntl } from '../selectors/user';
import { getOwn } from '../../util/getOwn'; import { getOwn } from '../../util/getOwn';
import { missingCaseError } from '../../util/missingCaseError'; import { missingCaseError } from '../../util/missingCaseError';
import { isConversationSMSOnly } from '../../util/isConversationSMSOnly'; import { isConversationSMSOnly } from '../../util/isConversationSMSOnly';
@ -71,7 +71,7 @@ const getOutgoingCallButtonStyle = (
const call = getOwn(calling.callsByConversation, conversation.id); const call = getOwn(calling.callsByConversation, conversation.id);
if ( if (
call?.callMode === CallMode.Group && call?.callMode === CallMode.Group &&
isAnybodyElseInGroupCall(call.peekInfo, getUserConversationId(state)) isAnybodyElseInGroupCall(call.peekInfo, getUserUuid(state))
) { ) {
return OutgoingCallButtonStyle.Join; return OutgoingCallButtonStyle.Join;
} }