Initial implementation of attachment menu

This commit is contained in:
Ilya Laktyushin
2022-02-11 19:38:28 +03:00
parent 8bd663e908
commit 7da0357b6d
45 changed files with 3105 additions and 191 deletions

View File

@@ -89,7 +89,8 @@
_assetGroup = assetGroup;
_intent = intent;
[self setTitle:_assetGroup.title];
[self setTitle:@"Gallery"];
// [self setTitle:_assetGroup.title];
_assetsDisposable = [[SMetaDisposable alloc] init];
}
@@ -167,7 +168,8 @@
if (strongSelf->_assetGroup == nil)
strongSelf->_assetGroup = assetGroup;
[strongSelf setTitle:assetGroup.title];
[self setTitle:@"Gallery"];
// [strongSelf setTitle:assetGroup.title];
return [strongSelf->_assetsLibrary assetsOfAssetGroup:assetGroup reversed:false];
}] deliverOn:[SQueue mainQueue]] startWithNext:^(id next)
@@ -198,7 +200,7 @@
if (scrollToBottom)
{
[strongSelf->_collectionView layoutSubviews];
[strongSelf _adjustContentOffsetToBottom];
// [strongSelf _adjustContentOffsetToBottom];
}
}
else if ([next isKindOfClass:[TGMediaAssetFetchResultChange class]])