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
1 changed files with 2 additions and 2 deletions

View File

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