mirror of
https://github.com/danog/Telegram.git
synced 2024-12-02 09:27:55 +01:00
38 lines
1009 B
Objective-C
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
|