1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/Telegraph/TGModernConversationViewContext.m
2016-02-25 01:03:51 +01:00

38 lines
1009 B
Objective-C

#import "TGModernConversationViewContext.h"
#import "TGModernConversationCompanion.h"
@implementation TGModernConversationViewContext
- (bool)isMediaVisibleInMessage:(int32_t)messageId
{
TGModernConversationCompanion *companion = _companion;
return [companion mediaHiddenMessageId] != messageId;
}
- (bool)isMessageChecked:(int32_t)messageId
{
TGModernConversationCompanion *companion = _companion;
return [companion _isMessageChecked:messageId];
}
- (bool)isSecretMessageViewed:(int32_t)messageId
{
TGModernConversationCompanion *companion = _companion;
return [companion _isSecretMessageViewed:messageId];
}
- (bool)isSecretMessageScreenshotted:(int32_t)messageId
{
TGModernConversationCompanion *companion = _companion;
return [companion _isSecretMessageScreenshotted:messageId];
}
- (NSTimeInterval)secretMessageViewDate:(int32_t)messageId
{
TGModernConversationCompanion *companion = _companion;
return [companion _secretMessageViewDate:messageId];
}
@end