Action Message: Fix preview styles (#5706)
This commit is contained in:
parent
8665905a05
commit
1633afb0eb
@ -198,7 +198,10 @@ export function buildApiMessageWithChatId(
|
|||||||
const isEdited = Boolean(mtpMessage.editDate) && !mtpMessage.editHide;
|
const isEdited = Boolean(mtpMessage.editDate) && !mtpMessage.editHide;
|
||||||
const {
|
const {
|
||||||
inlineButtons, keyboardButtons, keyboardPlaceholder, isKeyboardSingleUse, isKeyboardSelective,
|
inlineButtons, keyboardButtons, keyboardPlaceholder, isKeyboardSingleUse, isKeyboardSelective,
|
||||||
} = buildReplyButtons(mtpMessage.replyMarkup, mtpMessage.id) || {};
|
} = buildReplyButtons(
|
||||||
|
mtpMessage.replyMarkup,
|
||||||
|
mtpMessage.media instanceof GramJs.MessageMediaInvoice ? mtpMessage.media.receiptMsgId : undefined,
|
||||||
|
) || {};
|
||||||
const { mediaUnread: isMediaUnread, postAuthor } = mtpMessage;
|
const { mediaUnread: isMediaUnread, postAuthor } = mtpMessage;
|
||||||
const groupedId = mtpMessage.groupedId && String(mtpMessage.groupedId);
|
const groupedId = mtpMessage.groupedId && String(mtpMessage.groupedId);
|
||||||
const isInAlbum = Boolean(groupedId) && !(content.document || content.audio || content.sticker);
|
const isInAlbum = Boolean(groupedId) && !(content.document || content.audio || content.sticker);
|
||||||
|
|||||||
@ -400,6 +400,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.star-amount-icon {
|
||||||
|
vertical-align: text-top;
|
||||||
|
line-height: initial;
|
||||||
|
margin-inline: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&[dir="rtl"] {
|
&[dir="rtl"] {
|
||||||
|
|||||||
@ -668,7 +668,9 @@ const ActionMessageText = ({
|
|||||||
|
|
||||||
case 'suggestProfilePhoto': {
|
case 'suggestProfilePhoto': {
|
||||||
const actionPeer = (isOutgoing ? chat : sender)!;
|
const actionPeer = (isOutgoing ? chat : sender)!;
|
||||||
const actionPeerLink = renderPeerLink(actionPeer.id, getPeerTitle(lang, actionPeer) || userFallbackText);
|
const actionPeerLink = renderPeerLink(
|
||||||
|
actionPeer.id, getPeerTitle(lang, actionPeer) || userFallbackText, asPreview,
|
||||||
|
);
|
||||||
|
|
||||||
return translateWithYou(lang, 'ActionSuggestedPhoto', isOutgoing, { user: actionPeerLink });
|
return translateWithYou(lang, 'ActionSuggestedPhoto', isOutgoing, { user: actionPeerLink });
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user