2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Inline bot results preview: photo, audio, file, voice. Beta 9040126.

This commit is contained in:
John Preston
2016-04-10 22:18:26 +04:00
parent fe59c815b2
commit dd1d04e9b0
32 changed files with 597 additions and 258 deletions

View File

@@ -149,15 +149,21 @@ namespace App {
namespace Ui {
void showStickerPreview(DocumentData *sticker) {
void showMediaPreview(DocumentData *document) {
if (Window *w = App::wnd()) {
w->ui_showStickerPreview(sticker);
w->ui_showMediaPreview(document);
}
}
void hideStickerPreview() {
void showMediaPreview(PhotoData *photo) {
if (Window *w = App::wnd()) {
w->ui_hideStickerPreview();
w->ui_showMediaPreview(photo);
}
}
void hideMediaPreview() {
if (Window *w = App::wnd()) {
w->ui_hideMediaPreview();
}
}
@@ -292,6 +298,10 @@ namespace Notify {
if (MainWidget *m = App::main()) m->notify_historyItemLayoutChanged(item);
}
void inlineItemLayoutChanged(const InlineBots::Layout::ItemBase *layout) {
if (MainWidget *m = App::main()) m->notify_inlineItemLayoutChanged(layout);
}
void handlePendingHistoryUpdate() {
if (MainWidget *m = App::main()) {
m->notify_handlePendingHistoryUpdate();