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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user