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,51 @@
#import "TGMessageViewFooterController.h"
#import <WatchCommonWatch/WatchCommonWatch.h>
#import "TGWatchCommon.h"
#import "TGDateUtils.h"
NSString *const TGMessageViewFooterIdentifier = @"TGMessageViewFooter";
@implementation TGMessageViewFooterController
- (void)updateWithMessage:(TGBridgeMessage *)message channel:(bool)channel
{
self.dateLabel.text = [TGDateUtils stringForFullDate:message.date];
self.timeLabel.text = [TGDateUtils stringForShortTime:message.date];
self.forwardLabel.text = TGLocalized(@"Watch.MessageView.Forward");
self.replyLabel.text = TGLocalized(@"Watch.MessageView.Reply");
self.viewLabel.text = TGLocalized(@"Watch.MessageView.ViewOnPhone");
if (channel)
{
self.forwardButton.hidden = true;
self.replyButton.hidden = true;
}
}
- (IBAction)forwardButtonPressedAction
{
if (self.forwardPressed != nil)
self.forwardPressed();
}
- (IBAction)replyButtonPressedAction
{
if (self.replyPressed != nil)
self.replyPressed();
}
- (IBAction)viewButtonPressedAction
{
if (self.viewPressed != nil)
self.viewPressed();
}
+ (NSString *)identifier
{
return TGMessageViewFooterIdentifier;
}
@end