Update call lobby UI to match new designs
This commit is contained in:
parent
50c4fa06cc
commit
763c35e546
26 changed files with 857 additions and 435 deletions
|
@ -115,9 +115,23 @@ const mapStateToActiveCallProp = (
|
|||
};
|
||||
case CallMode.Group: {
|
||||
const conversationsWithSafetyNumberChanges: Array<ConversationType> = [];
|
||||
const groupMembers: Array<ConversationType> = [];
|
||||
const remoteParticipants: Array<GroupCallRemoteParticipantType> = [];
|
||||
const peekedParticipants: Array<ConversationType> = [];
|
||||
|
||||
const { memberships = [] } = conversation;
|
||||
for (let i = 0; i < memberships.length; i += 1) {
|
||||
const { conversationId } = memberships[i];
|
||||
const member = conversationSelectorByUuid(conversationId);
|
||||
|
||||
if (!member) {
|
||||
window.log.error('Group member has no corresponding conversation');
|
||||
continue;
|
||||
}
|
||||
|
||||
groupMembers.push(member);
|
||||
}
|
||||
|
||||
for (let i = 0; i < call.remoteParticipants.length; i += 1) {
|
||||
const remoteParticipant = call.remoteParticipants[i];
|
||||
|
||||
|
@ -183,6 +197,7 @@ const mapStateToActiveCallProp = (
|
|||
connectionState: call.connectionState,
|
||||
conversationsWithSafetyNumberChanges,
|
||||
deviceCount: call.peekInfo.deviceCount,
|
||||
groupMembers,
|
||||
joinState: call.joinState,
|
||||
maxDevices: call.peekInfo.maxDevices,
|
||||
peekedParticipants,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue