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

Move MediaView from MainWindow to Messenger.

This commit is contained in:
John Preston
2017-08-08 11:31:48 +02:00
parent fa818407e6
commit b08732cf28
28 changed files with 266 additions and 271 deletions

View File

@@ -241,11 +241,6 @@ bool isLayerShown() {
return false;
}
bool isMediaViewShown() {
if (auto w = App::wnd()) return w->ui_isMediaViewShown();
return false;
}
void repaintHistoryItem(gsl::not_null<const HistoryItem*> item) {
if (auto main = App::main()) {
main->ui_repaintHistoryItem(item);
@@ -282,10 +277,7 @@ void showPeerHistoryAsync(const PeerId &peer, MsgId msgId, ShowWay way) {
}
PeerData *getPeerForMouseAction() {
if (auto w = App::wnd()) {
return w->ui_getPeerForMouseAction();
}
return nullptr;
return Messenger::Instance().ui_getPeerForMouseAction();
}
bool hideWindowNoQuit() {