diff --git a/Telegram/Resources/animations/rtmp.tgs b/Telegram/Resources/animations/rtmp.tgs new file mode 100644 index 0000000000..53917fd1a0 Binary files /dev/null and b/Telegram/Resources/animations/rtmp.tgs differ diff --git a/Telegram/Resources/qrc/telegram/animations.qrc b/Telegram/Resources/qrc/telegram/animations.qrc index 632d39986b..c02e93eb23 100644 --- a/Telegram/Resources/qrc/telegram/animations.qrc +++ b/Telegram/Resources/qrc/telegram/animations.qrc @@ -47,6 +47,7 @@ ../../animations/toast/tagged.tgs ../../animations/my_gifts_empty.tgs ../../animations/toast/chats_filter_in.tgs + ../../animations/rtmp.tgs ../../animations/profile/profile_muting.tgs ../../animations/profile/profile_unmuting.tgs diff --git a/Telegram/SourceFiles/calls/group/calls_group_rtmp.cpp b/Telegram/SourceFiles/calls/group/calls_group_rtmp.cpp index 9c35ed529d..0006836a5a 100644 --- a/Telegram/SourceFiles/calls/group/calls_group_rtmp.cpp +++ b/Telegram/SourceFiles/calls/group/calls_group_rtmp.cpp @@ -13,8 +13,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "data/data_chat.h" #include "data/data_user.h" #include "lang/lang_keys.h" +#include "lottie/lottie_icon.h" #include "main/main_account.h" #include "main/main_session.h" +#include "settings/settings_common.h" #include "ui/boxes/confirm_box.h" #include "ui/layers/generic_box.h" #include "ui/text/text_utilities.h" @@ -48,6 +50,24 @@ void StartWithBox( }; const auto state = box->lifetime().make_state(); + { + auto icon = Settings::CreateLottieIcon( + box->verticalLayout(), + { + .name = u"rtmp"_q, + .sizeOverride = { + st::changePhoneIconSize, + st::changePhoneIconSize, + }, + }, + {}); + box->verticalLayout()->add(std::move(icon.widget), {}, style::al_top); + box->setShowFinishedCallback([animate = icon.animate] { + animate(anim::repeat::loop); + }); + Ui::AddSkip(box->verticalLayout()); + } + StartRtmpProcess::FillRtmpRows( box->verticalLayout(), true,