Fix build with Xcode.

This commit is contained in:
John Preston 2022-12-24 08:15:20 +04:00
parent 12dd72bddf
commit aacb720664
3 changed files with 2 additions and 3 deletions

View File

@ -490,7 +490,7 @@ PreparedShortInfoUserpic PrepareShortInfoFallbackUserpic(
1,
1,
1))
: rpl::never<UserPhotosSlice>();
: (rpl::never<UserPhotosSlice>() | rpl::type_erased());
auto process = [=](not_null<UserpicState*> state) {
if (photoId) {
ProcessFullPhoto(peer, state, peer->owner().photo(*photoId));

View File

@ -30,7 +30,7 @@ namespace Ui {
class ScrollArea;
class PlainShadow;
class FlatButton;
class PreparedList;
struct PreparedList;
class SendFilesWay;
} // namespace Ui

View File

@ -618,7 +618,6 @@ void UserpicButton::processPeerPhoto() {
if (_showPeerUserpic) {
_peer->loadUserpic();
} else if (_nonPersonalView) {
AssertIsDebug();
showNonPersonal->load(Data::FileOriginFullUser{
peerToUser(user->id),
});