mirror of
https://github.com/danog/Telegram.git
synced 2024-12-11 17:09:46 +01:00
21 lines
724 B
Objective-C
21 lines
724 B
Objective-C
#import "TGBridgeForwardedMessageMediaAttachment+TGForwardedMessageMediaAttachment.h"
|
|
|
|
#import "TGPeerIdAdapter.h"
|
|
|
|
@implementation TGBridgeForwardedMessageMediaAttachment (TGForwardedMessageMediaAttachment)
|
|
|
|
+ (TGBridgeForwardedMessageMediaAttachment *)attachmentWithTGForwardedMessageMediaAttachment:(TGForwardedMessageMediaAttachment *)attachment
|
|
{
|
|
if (attachment == nil)
|
|
return nil;
|
|
|
|
TGBridgeForwardedMessageMediaAttachment *bridgeAttachment = [[TGBridgeForwardedMessageMediaAttachment alloc] init];
|
|
bridgeAttachment.peerId = attachment.forwardPeerId;
|
|
bridgeAttachment.date = attachment.forwardDate;
|
|
bridgeAttachment.mid = attachment.forwardMid;
|
|
|
|
return bridgeAttachment;
|
|
}
|
|
|
|
@end
|