2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Show profile video in PeerShortInfoBox.

This commit is contained in:
John Preston
2021-10-18 18:17:09 +04:00
parent 61ac7e6c1d
commit 24e0ea2a59
5 changed files with 161 additions and 15 deletions

View File

@@ -10,6 +10,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "boxes/peer_list_controllers.h"
#include "boxes/peers/edit_participant_box.h"
#include "boxes/peers/add_participants_box.h"
#include "boxes/peers/prepare_short_info_box.h" // PrepareShortInfoBox
#include "ui/boxes/confirm_box.h"
#include "boxes/max_invite_box.h"
#include "boxes/add_contact_box.h"
@@ -1434,7 +1435,10 @@ void ParticipantsBoxController::rowClicked(not_null<PeerListRow*> row) {
showRestricted(user);
} else {
Assert(_navigation != nullptr);
_navigation->showPeerInfo(participant);
AssertIsDebug();
_navigation->parentController()->show(PrepareShortInfoBox(
participant,
_navigation));
}
}