mirror of
https://github.com/danog/Telegram.git
synced 2024-12-02 09:27:55 +01:00
58 lines
1.8 KiB
Objective-C
58 lines
1.8 KiB
Objective-C
/*
|
|
* This is the source code of Telegram for iOS v. 1.1
|
|
* It is licensed under GNU GPL v. 2 or later.
|
|
* You should have received a copy of the license in this archive (see LICENSE).
|
|
*
|
|
* Copyright Peter Iakovlev, 2013.
|
|
*/
|
|
|
|
#import "TGModernConversationCompanion.h"
|
|
|
|
@interface TGGenericModernConversationCompanion : TGModernConversationCompanion
|
|
{
|
|
@public
|
|
int64_t _conversationId;
|
|
int64_t _attachedConversationId;
|
|
int64_t _accessHash;
|
|
|
|
bool _everyMessageNeedsAuthor;
|
|
bool _manualMessageManagement;
|
|
|
|
int32_t _preferredInitialPositionedMessageId;
|
|
}
|
|
|
|
- (instancetype)initWithConversationId:(int64_t)conversationId mayHaveUnreadMessages:(bool)mayHaveUnreadMessages;
|
|
|
|
- (void)setOthersUnreadCount:(int)unreadCount;
|
|
- (void)setPreferredInitialMessagePositioning:(int32_t)messageId;
|
|
- (void)setInitialMessagePayloadWithForwardMessages:(NSArray *)initialForwardMessagePayload sendMessages:(NSArray *)initialSendMessagePayload sendFiles:(NSArray *)initialSendFilePayload;
|
|
|
|
- (int64_t)conversationId;
|
|
- (int64_t)messageAuthorPeerId;
|
|
- (bool)_shouldCacheRemoteAssetUris;
|
|
- (bool)_shouldDisplayProcessUnreadCount;
|
|
+ (CGSize)preferredInlineThumbnailSize;
|
|
- (int)messageLifetime;
|
|
- (NSUInteger)layer;
|
|
- (void)setLayer:(NSUInteger)layer;
|
|
|
|
- (void)loadInitialState:(bool)loadMessages;
|
|
|
|
- (NSString *)_conversationIdPathComponent;
|
|
- (NSString *)_sendMessagePathForMessageId:(int32_t)mid;
|
|
- (NSString *)_sendMessagePathPrefix;
|
|
- (NSDictionary *)_optionsForMessageActions;
|
|
- (void)_setupOutgoingMessage:(TGMessage *)message;
|
|
- (bool)_messagesNeedRandomId;
|
|
|
|
- (void)standaloneForwardMessages:(NSArray *)messages;
|
|
- (void)standaloneSendMessages:(NSArray *)messages;
|
|
- (void)standaloneSendFiles:(NSArray *)files;
|
|
- (void)shareVCard;
|
|
|
|
- (void)scheduleReadHistory;
|
|
|
|
- (bool)shouldFastScrollDown;
|
|
|
|
@end
|