Remove additional padding in shared contacts.

This commit is contained in:
John Preston 2021-08-18 15:52:04 +03:00
parent a502cbc06e
commit 1792bed721
1 changed files with 0 additions and 9 deletions

View File

@ -147,15 +147,6 @@ QSize Contact::countOptimalSize() {
accumulate_max(maxWidth, tleft + _name.maxWidth() + tright);
accumulate_min(maxWidth, st::msgMaxWidth);
auto minHeight = st.padding.top() + st.thumbSize + st.padding.bottom();
if (_userId) {
const auto msgsigned = item->Get<HistoryMessageSigned>();
const auto views = item->Get<HistoryMessageViews>();
if ((msgsigned && !msgsigned->isAnonymousRank)
|| (views
&& (views->views.count >= 0 || views->replies.count > 0))) {
minHeight += st::msgDateFont->height - st::msgDateDelta.y();
}
}
if (!isBubbleTop()) {
minHeight -= st::msgFileTopMinus;
}