Properly style call buttons across app, when already in a call

This commit is contained in:
Scott Nonnenberg 2024-08-27 06:48:41 +10:00 committed by GitHub
parent 3c25092f50
commit c251867699
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
39 changed files with 610 additions and 189 deletions

View file

@ -577,6 +577,7 @@ export const getPropsForQuote = (
export type GetPropsForMessageOptions = Pick<
GetPropsForBubbleOptions,
| 'activeCall'
| 'conversationSelector'
| 'ourConversationId'
| 'ourAci'
@ -676,6 +677,7 @@ export const getPropsForMessage = (
const payment = getPayment(message);
const {
activeCall,
accountSelector,
conversationSelector,
ourConversationId,
@ -699,6 +701,7 @@ export const getPropsForMessage = (
const { sticker } = message;
const isMessageTapToView = isTapToView(message);
const activeCallConversationId = activeCall?.conversationId;
const isTargeted = message.id === targetedMessageId;
const isSelected = selectedMessageIds?.includes(message.id) ?? false;
@ -726,6 +729,7 @@ export const getPropsForMessage = (
attachmentDroppedDueToSize,
author,
bodyRanges,
activeCallConversationId,
previews,
quote,
reactions,