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

View file

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

View file

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