Properly style call buttons across app, when already in a call
This commit is contained in:
parent
3c25092f50
commit
c251867699
39 changed files with 610 additions and 189 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue