Fix some minor chat issues (#10332)
This commit is contained in:
@@ -28,7 +28,10 @@ export function AvatarBubbles({
|
||||
size = 'large',
|
||||
}: Props) {
|
||||
const {currentAccount} = useSession()
|
||||
const profiles = allProfiles.filter(p => p.did !== currentAccount?.did)
|
||||
const profiles =
|
||||
allProfiles.length > 2
|
||||
? allProfiles.filter(p => p.did !== currentAccount?.did)
|
||||
: allProfiles
|
||||
const containerSize =
|
||||
typeof size === 'number'
|
||||
? size
|
||||
@@ -86,7 +89,7 @@ export function AvatarBubbles({
|
||||
let avatars = (
|
||||
<>
|
||||
<AvatarBubble
|
||||
profile={profiles[0] ?? allProfiles[0]}
|
||||
profile={profiles[0]}
|
||||
scale={p0}
|
||||
size={76}
|
||||
x={-2}
|
||||
|
||||
@@ -168,12 +168,18 @@ let MessageItem = ({
|
||||
isInCluster && !effectiveFirstInCluster && !effectiveLastInCluster
|
||||
|
||||
const hasReactions = message.reactions && message.reactions.length > 0
|
||||
const prevHasReactions =
|
||||
prevIsMessage &&
|
||||
prevMessage.reactions != null &&
|
||||
prevMessage.reactions.length > 0
|
||||
const squaredBottomCorner =
|
||||
!hasReactions &&
|
||||
isInCluster &&
|
||||
(isInMiddleOfCluster || effectiveFirstInCluster)
|
||||
const squaredTopCorner =
|
||||
isInCluster && (isInMiddleOfCluster || effectiveLastInCluster)
|
||||
!prevHasReactions &&
|
||||
isInCluster &&
|
||||
(isInMiddleOfCluster || effectiveLastInCluster)
|
||||
|
||||
const pendingColor = t.palette.primary_300
|
||||
|
||||
|
||||
@@ -919,7 +919,6 @@ function SettingsHeader({
|
||||
|
||||
function SettingsHeaderPlaceholder() {
|
||||
const t = useTheme()
|
||||
const {t: l} = useLingui()
|
||||
|
||||
return (
|
||||
<View style={[a.px_xl, a.py_4xl, a.border_b, t.atoms.border_contrast_low]}>
|
||||
@@ -928,7 +927,7 @@ function SettingsHeaderPlaceholder() {
|
||||
</View>
|
||||
<Text
|
||||
style={[a.text_2xl, a.font_bold, a.text_center, a.pt_lg, t.atoms.text]}>
|
||||
{l`…`}
|
||||
…
|
||||
</Text>
|
||||
<Text
|
||||
style={[
|
||||
@@ -1015,7 +1014,7 @@ function SettingsButtonPlaceholder() {
|
||||
a.pt_xs,
|
||||
t.atoms.text,
|
||||
]}>
|
||||
{l`…`}
|
||||
…
|
||||
</Text>
|
||||
</View>
|
||||
)
|
||||
|
||||
@@ -43,6 +43,7 @@ export function MessageListError({item}: {item: ConvoItem & {type: 'error'}}) {
|
||||
{description}
|
||||
{item.retry && (
|
||||
<>
|
||||
{' '}
|
||||
·{' '}
|
||||
<InlineLinkText
|
||||
label={help}
|
||||
|
||||
Reference in New Issue
Block a user