mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
aabf656d89
Updated the config message generation for GRDB Migrated more preferences into GRDB Added paging to the MediaTileViewController and sorted out the various animations/transitions Fixed an issue where the 'recipientState' for the 'baseQuery' on the ConversationCell.ViewModel wasn't grouping correctly Fixed an issue where the MediaZoomAnimationController could fail if the contextual info wasn't available Fixed an issue where the MediaZoomAnimationController bounce looked odd when returning to the detail screen from the tile screen Fixed an issue where the MediaZoomAnimationController didn't work for videos Fixed a bug where the YDB to GRDB migration wasn't properly handling video files Fixed a number of minor UI bugs with the GalleryRailView Deleted a bunch of legacy code
43 lines
1.5 KiB
Objective-C
43 lines
1.5 KiB
Objective-C
//
|
|
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import <YapDatabase/YapDatabaseTransaction.h>
|
|
|
|
@class ECKeyPair;
|
|
@class PreKeyRecord;
|
|
@class PreKeyBundle;
|
|
@class SignedPreKeyRecord;
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface YapDatabaseReadTransaction (OWS)
|
|
|
|
- (BOOL)boolForKey:(NSString *)key inCollection:(NSString *)collection defaultValue:(BOOL)defaultValue;
|
|
- (double)doubleForKey:(NSString *)key inCollection:(NSString *)collection defaultValue:(double)defaultValue;
|
|
- (int)intForKey:(NSString *)key inCollection:(NSString *)collection;
|
|
- (nullable NSDate *)dateForKey:(NSString *)key inCollection:(NSString *)collection;
|
|
- (nullable NSDictionary *)dictionaryForKey:(NSString *)key inCollection:(NSString *)collection;
|
|
- (nullable NSString *)stringForKey:(NSString *)key inCollection:(NSString *)collection;
|
|
- (nullable NSData *)dataForKey:(NSString *)key inCollection:(NSString *)collection;
|
|
- (nullable ECKeyPair *)keyPairForKey:(NSString *)key inCollection:(NSString *)collection;
|
|
|
|
@end
|
|
|
|
#pragma mark -
|
|
|
|
@interface YapDatabaseReadWriteTransaction (OWS)
|
|
|
|
#pragma mark - Debug
|
|
|
|
#if DEBUG
|
|
- (void)snapshotCollection:(NSString *)collection snapshotFilePath:(NSString *)snapshotFilePath;
|
|
- (void)restoreSnapshotOfCollection:(NSString *)collection snapshotFilePath:(NSString *)snapshotFilePath;
|
|
#endif
|
|
|
|
- (void)setBool:(BOOL)value forKey:(NSString *)key inCollection:(NSString *)collection;
|
|
- (void)setDate:(NSDate *)value forKey:(NSString *)key inCollection:(NSString *)collection;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|