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
@@ -0,0 +1,41 @@
#import "TGStickersRowController.h"
#import <WatchCommonWatch/WatchCommonWatch.h>
#import "WKInterfaceGroup+Signals.h"
#import "TGBridgeMediaSignals.h"
NSString *const TGStickersRowIdentifier = @"TGStickersRow";
@implementation TGStickersRowController
- (IBAction)leftStickerPressedAction
{
if (self.leftStickerPressed != nil)
self.leftStickerPressed();
}
- (IBAction)rightStickerPressedAction
{
if (self.rightStickerPressed != nil)
self.rightStickerPressed();
}
- (void)updateWithLeftSticker:(TGBridgeDocumentMediaAttachment *)leftSticker rightSticker:(TGBridgeDocumentMediaAttachment *)rightSticker
{
[self.leftStickerImageGroup setBackgroundImageSignal:[TGBridgeMediaSignals stickerWithDocumentId:leftSticker.documentId packId:leftSticker.stickerPackId accessHash:leftSticker.stickerPackAccessHash type:TGMediaStickerImageTypeNormal] isVisible:self.isVisible];
[self.rightStickerImageGroup setBackgroundImageSignal:[TGBridgeMediaSignals stickerWithDocumentId:rightSticker.documentId packId:rightSticker.stickerPackId accessHash:rightSticker.stickerPackAccessHash type:TGMediaStickerImageTypeNormal] isVisible:self.isVisible];
}
- (void)notifyVisiblityChange
{
[self.leftStickerImageGroup updateIfNeeded];
[self.rightStickerImageGroup updateIfNeeded];
}
+ (NSString *)identifier
{
return TGStickersRowIdentifier;
}
@end