diff --git a/Telegram/SourceFiles/calls/calls.style b/Telegram/SourceFiles/calls/calls.style index 5780c40ca1..d120aa7bd8 100644 --- a/Telegram/SourceFiles/calls/calls.style +++ b/Telegram/SourceFiles/calls/calls.style @@ -150,6 +150,6 @@ callReDial: IconButton { iconPosition: point(-1px, -1px); ripple: defaultRippleAnimation; - rippleAreaPosition: point(4px, 12px); - rippleAreaSize: 32px; + rippleAreaPosition: point(0px, 8px); + rippleAreaSize: 40px; } diff --git a/Telegram/SourceFiles/calls/calls_box_controller.cpp b/Telegram/SourceFiles/calls/calls_box_controller.cpp index 030b0e356e..c220df79b5 100644 --- a/Telegram/SourceFiles/calls/calls_box_controller.cpp +++ b/Telegram/SourceFiles/calls/calls_box_controller.cpp @@ -196,6 +196,11 @@ void BoxController::prepare() { view()->refreshRows(); } }); + subscribe(Current().newServiceMessage(), [this](const FullMsgId &msgId) { + if (auto item = App::histItemById(msgId)) { + insertRow(item, InsertWay::Prepend); + } + }); view()->setTitle(lang(lng_call_box_title)); view()->addButton(lang(lng_close), [this] { view()->closeBox(); }); diff --git a/Telegram/SourceFiles/calls/calls_instance.h b/Telegram/SourceFiles/calls/calls_instance.h index e85fe22119..f0155f132b 100644 --- a/Telegram/SourceFiles/calls/calls_instance.h +++ b/Telegram/SourceFiles/calls/calls_instance.h @@ -39,6 +39,10 @@ public: return _currentCallChanged; } + base::Observable &newServiceMessage() { + return _newServiceMessage; + } + ~Instance(); private: @@ -61,6 +65,7 @@ private: std::unique_ptr _currentCall; std::unique_ptr _currentCallPanel; base::Observable _currentCallChanged; + base::Observable _newServiceMessage; }; diff --git a/Telegram/SourceFiles/history/history_media_types.cpp b/Telegram/SourceFiles/history/history_media_types.cpp index e2cb8d5257..dab9701883 100644 --- a/Telegram/SourceFiles/history/history_media_types.cpp +++ b/Telegram/SourceFiles/history/history_media_types.cpp @@ -2809,6 +2809,8 @@ HistoryCall::HistoryCall(HistoryItem *parent, const MTPDmessageActionPhoneCall & _duration = 0; } } + + Calls::Current().newServiceMessage().notify(_parent->fullId()); } HistoryCall::FinishReason HistoryCall::GetReason(const MTPDmessageActionPhoneCall &call) {