2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-06 01:25:18 +00:00

pausing of mtp while animating, fixed message field while animating

This commit is contained in:
John Preston
2015-10-15 12:18:24 +02:00
parent 1c28d59ed2
commit f12f21b16b
15 changed files with 99 additions and 2 deletions

View File

@@ -296,6 +296,14 @@ void Application::cancelPhotoUpdate(const PeerId &peer) {
}
}
void Application::mtpUnpause() {
QTimer::singleShot(1, this, SLOT(doMtpUnpause()));
}
void Application::doMtpUnpause() {
MTP::unpause();
}
void Application::selfPhotoCleared(const MTPUserProfilePhoto &result) {
if (!App::self()) return;
App::self()->setPhoto(result);