Skip to content

Commit

Permalink
Beta version 4.0.4: Fix build with GCC.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Aug 5, 2022
1 parent 11b6211 commit d891a53
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
Expand Up @@ -54,10 +54,6 @@ struct CustomEmojiSizeInfo {
: SizeTag::Normal;
}

[[nodiscard]] bool IsLargeSizeDimension(int dimension) {
return (dimension == 5) || (dimension == 6);
}

} //namespace

CustomEmoji::CustomEmoji(
Expand Down
Expand Up @@ -267,7 +267,6 @@ PointState UnwrappedMedia::pointState(QPoint point) const {
const auto rightAligned = _parent->hasOutLayout()
&& !_parent->delegate()->elementIsChatWide();
const auto inWebPage = (_parent->media() != this);
const auto item = _parent->data();
auto usex = 0;
auto usew = _contentSize.width();
if (!inWebPage && rightAligned) {
Expand Down Expand Up @@ -424,10 +423,6 @@ QRect UnwrappedMedia::contentRectForReactions() const {
}
const auto rightAligned = _parent->hasOutLayout()
&& !_parent->delegate()->elementIsChatWide();
const auto item = _parent->data();
const auto via = item->Get<HistoryMessageVia>();
const auto reply = _parent->displayedReply();
const auto forwarded = getDisplayedForwardedInfo();
auto usex = 0;
auto usew = _contentSize.width();
accumulate_max(usew, _parent->reactionsOptimalWidth());
Expand Down
2 changes: 1 addition & 1 deletion Telegram/lib_ui
Submodule lib_ui updated 1 files
+0 −1 ui/text/text.cpp

0 comments on commit d891a53

Please sign in to comment.