mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.2 KiB
C
36 lines
1.2 KiB
C
7 years ago
|
//
|
||
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@interface OWSUnreadIndicator : NSObject
|
||
|
|
||
|
@property (nonatomic, readonly) uint64_t timestamp;
|
||
|
|
||
|
@property (nonatomic, readonly) BOOL hasMoreUnseenMessages;
|
||
|
|
||
|
@property (nonatomic, readonly) NSUInteger missingUnseenSafetyNumberChangeCount;
|
||
|
|
||
|
@property (nonatomic, readonly) uint64_t firstUnseenInteractionTimestamp;
|
||
|
|
||
|
// The index of the unseen indicator, counting from the _end_ of the conversation
|
||
|
// history.
|
||
|
//
|
||
|
// This is used by MessageViewController to increase the
|
||
|
// range size of the mappings (the load window of the conversation)
|
||
|
// to include the unread indicator.
|
||
|
@property (nonatomic, readonly) NSInteger unreadIndicatorPosition;
|
||
|
|
||
|
- (instancetype)init NS_UNAVAILABLE;
|
||
|
|
||
|
- (instancetype)initUnreadIndicatorWithTimestamp:(uint64_t)timestamp
|
||
|
hasMoreUnseenMessages:(BOOL)hasMoreUnseenMessages
|
||
|
missingUnseenSafetyNumberChangeCount:(NSUInteger)missingUnseenSafetyNumberChangeCount
|
||
|
unreadIndicatorPosition:(NSInteger)unreadIndicatorPosition
|
||
|
firstUnseenInteractionTimestamp:(uint64_t)firstUnseenInteractionTimestamp NS_DESIGNATED_INITIALIZER;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|