Merge commit '7621e2f8dec938cf48181c8b10afc9b01f444e68' into beta

This commit is contained in:
Ilya Laktyushin
2025-12-06 02:17:48 +04:00
commit 8344b97e03
28070 changed files with 7995182 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
#import "TGIndexPath.h"
@implementation TGIndexPath
+ (instancetype)indexPathForRow:(NSUInteger)row inSection:(NSUInteger)section
{
TGIndexPath *indexPath = [[TGIndexPath alloc] init];
indexPath.section = section;
indexPath.row = row;
return indexPath;
}
- (id)copyWithZone:(NSZone *)zone
{
TGIndexPath *copy = [[[self class] alloc] init];
if (copy != nil)
{
copy.section = self.section;
copy.row = self.row;
}
return copy;
}
- (BOOL)isEqual:(id)object
{
if (object == self)
return YES;
if (!object || ![object isKindOfClass:[self class]])
return NO;
TGIndexPath *indexPath = (TGIndexPath *)object;
return self.section == indexPath.section && self.row == indexPath.row;
}
@end