mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
fix: make it build
This commit is contained in:
parent
7321b654bf
commit
27f4f73690
6 changed files with 13 additions and 6 deletions
|
@ -522,8 +522,8 @@ bool InnerWidget::elementUnderCursor(
|
|||
return (Element::Hovered() == view);
|
||||
}
|
||||
|
||||
bool InnerWidget::elementInSelectionMode() {
|
||||
return false;
|
||||
HistoryView::SelectionModeResult InnerWidget::elementInSelectionMode() {
|
||||
return {};
|
||||
}
|
||||
|
||||
bool InnerWidget::elementIntersectsRange(
|
||||
|
|
|
@ -87,7 +87,7 @@ public:
|
|||
HistoryView::Context elementContext() override;
|
||||
bool elementUnderCursor(
|
||||
not_null<const HistoryView::Element*> view) override;
|
||||
bool elementInSelectionMode() override;
|
||||
HistoryView::SelectionModeResult elementInSelectionMode() override;
|
||||
bool elementIntersectsRange(
|
||||
not_null<const HistoryView::Element*> view,
|
||||
int from,
|
||||
|
|
|
@ -515,7 +515,7 @@ HistoryInner::HistoryInner(
|
|||
auto mousePos = mapFromGlobal(globalPosition);
|
||||
auto point = _widget->clampMousePosition(mousePos);
|
||||
|
||||
if (!inSelectionMode() && !_emptyPainter && rect().contains(mousePos)) {
|
||||
if (!inSelectionMode().inSelectionMode && !_emptyPainter && rect().contains(mousePos)) {
|
||||
if (const auto view = Element::Moused()) {
|
||||
mouseActionCancel();
|
||||
|
||||
|
|
|
@ -1838,6 +1838,13 @@ void HistoryWidget::fileChosen(ChatHelpers::FileChosen &&data) {
|
|||
Data::InsertCustomEmoji(_field.data(), data.document);
|
||||
}
|
||||
} else {
|
||||
const auto settings = &AyuSettings::getInstance();
|
||||
if (!settings->sendReadMessages && settings->markReadAfterAction) {
|
||||
if (const auto lastMessage = history()->lastMessage()) {
|
||||
readHistory(lastMessage);
|
||||
}
|
||||
}
|
||||
|
||||
controller()->sendingAnimation().appendSending(
|
||||
data.messageSendingFrom);
|
||||
const auto localId = data.messageSendingFrom.localId;
|
||||
|
|
|
@ -383,7 +383,7 @@ Panel::Panel(
|
|||
_widget->setWindowFlag(Qt::WindowStaysOnTopHint, false);
|
||||
|
||||
const auto settings = &AyuSettings::getInstance();
|
||||
auto size = QSize(st::botWebViewPanelSize, true);
|
||||
auto size = QSize(st::botWebViewPanelSize);
|
||||
if (settings->increaseWebviewHeight) {
|
||||
size.setHeight(st::botWebViewPanelHeightIncreased);
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 0b2ad5944f2127fa78924fa4d859bd45e2773bb7
|
||||
Subproject commit cc4d93a209031dcc8cb43486e985461945f8bb87
|
Loading…
Add table
Reference in a new issue