mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-08 13:59:29 +00:00
[_ASAsyncTransaction] c++
Signed-off-by: Matej Knopp <matej.knopp@gmail.com>
This commit is contained in:
@@ -126,9 +126,9 @@
|
||||
|
||||
- (void)addCompletionBlock:(asyncdisplaykit_async_transaction_completion_block_t)completion
|
||||
{
|
||||
__weak typeof(self) weakSelf = self;
|
||||
__weak __typeof__(self) weakSelf = self;
|
||||
[self addOperationWithBlock:^(){return (id<NSObject>)nil;} queue:_callbackQueue completion:^(id<NSObject> value, BOOL canceled) {
|
||||
typeof(self) strongSelf = weakSelf;
|
||||
__typeof__(self) strongSelf = weakSelf;
|
||||
completion(strongSelf, canceled);
|
||||
}];
|
||||
}
|
||||
Reference in New Issue
Block a user