mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Moved inline bot result structs from structs.cpp/h module.
Moved inline bot result layouts from layout.cpp/h module. Over status prepared for inline bot file result icon. Dependencies reduced, inline bots code moved to InlineBots namespace. Build in Xcode and QtCreator broken.
This commit is contained in:
@@ -812,11 +812,11 @@ void MainWidget::ui_repaintHistoryItem(const HistoryItem *item) {
|
||||
if (overview) overview->ui_repaintHistoryItem(item);
|
||||
}
|
||||
|
||||
void MainWidget::ui_repaintInlineItem(const LayoutInlineItem *layout) {
|
||||
void MainWidget::ui_repaintInlineItem(const InlineBots::Layout::ItemBase *layout) {
|
||||
history.ui_repaintInlineItem(layout);
|
||||
}
|
||||
|
||||
bool MainWidget::ui_isInlineItemVisible(const LayoutInlineItem *layout) {
|
||||
bool MainWidget::ui_isInlineItemVisible(const InlineBots::Layout::ItemBase *layout) {
|
||||
return history.ui_isInlineItemVisible(layout);
|
||||
}
|
||||
|
||||
@@ -1895,7 +1895,7 @@ void MainWidget::documentLoadRetry() {
|
||||
}
|
||||
|
||||
void MainWidget::inlineResultLoadProgress(FileLoader *loader) {
|
||||
//InlineResult *result = App::inlineResultFromLoader(loader);
|
||||
//InlineBots::Result *result = InlineBots::resultFromLoader(loader);
|
||||
//if (!result) return;
|
||||
|
||||
//result->loaded();
|
||||
@@ -1904,7 +1904,7 @@ void MainWidget::inlineResultLoadProgress(FileLoader *loader) {
|
||||
}
|
||||
|
||||
void MainWidget::inlineResultLoadFailed(FileLoader *loader, bool started) {
|
||||
//InlineResult *result = App::inlineResultFromLoader(loader);
|
||||
//InlineBots::Result *result = InlineBots::resultFromLoader(loader);
|
||||
//if (!result) return;
|
||||
|
||||
//result->loaded();
|
||||
|
Reference in New Issue
Block a user