diff --git a/Telegram/SourceFiles/core/observer.h b/Telegram/SourceFiles/core/observer.h index fc4eb788d..bbde082a2 100644 --- a/Telegram/SourceFiles/core/observer.h +++ b/Telegram/SourceFiles/core/observer.h @@ -150,7 +150,8 @@ public: } void notify(const EventType &event, bool sync = false) { if (this->_data) { - this->_data->notify(EventType(event), sync); + auto event_copy = event; + this->_data->notify(std::move(event_copy), sync); } }