mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-09-01 17:43:03 +02:00
Update history_view_message.cpp
fix build
This commit is contained in:
parent
8d99407e42
commit
bc426bf764
1 changed files with 1 additions and 8 deletions
|
@ -4623,9 +4623,7 @@ QRect Message::countGeometry() const {
|
||||||
? media->width()
|
? media->width()
|
||||||
: width();
|
: width();
|
||||||
const auto outbg = hasOutLayout();
|
const auto outbg = hasOutLayout();
|
||||||
const auto useMoreSpace = (delegate()->elementChatMode()
|
const auto wideSkip = delegate()->elementIsChatWide()
|
||||||
== ElementChatMode::Narrow);
|
|
||||||
const auto wideSkip = useMoreSpace
|
|
||||||
? st::msgMargin.left()
|
? st::msgMargin.left()
|
||||||
: st::msgMargin.right();
|
: st::msgMargin.right();
|
||||||
const auto availableWidth = width()
|
const auto availableWidth = width()
|
||||||
|
@ -4768,11 +4766,6 @@ int Message::resizeContentGetHeight(int newWidth) {
|
||||||
// This code duplicates countGeometry() but also resizes media.
|
// This code duplicates countGeometry() but also resizes media.
|
||||||
const auto centeredView = item->isFakeAboutView()
|
const auto centeredView = item->isFakeAboutView()
|
||||||
|| (context() == Context::Replies && item->isDiscussionPost());
|
|| (context() == Context::Replies && item->isDiscussionPost());
|
||||||
const auto useMoreSpace = (delegate()->elementChatMode()
|
|
||||||
== ElementChatMode::Narrow);
|
|
||||||
const auto wideSkip = useMoreSpace
|
|
||||||
? st::msgMargin.left()
|
|
||||||
: st::msgMargin.right();
|
|
||||||
auto contentWidth = newWidth
|
auto contentWidth = newWidth
|
||||||
- st::msgMargin.left()
|
- st::msgMargin.left()
|
||||||
- (centeredView ? st::msgMargin.left() : st::msgMargin.right());
|
- (centeredView ? st::msgMargin.left() : st::msgMargin.right());
|
||||||
|
|
Loading…
Add table
Reference in a new issue