This would especially affect users with large databases on older devices. Some of these database extensions aren't strictly necessary to launch the app. Theoretically we could see weird read receipt behavior for the initial 10-30 seconds after the app is launched for first time. // FREEBIE
30 lines
834 B
Objective-C
30 lines
834 B
Objective-C
//
|
|
// TSDatabaseView.h
|
|
// TextSecureKit
|
|
//
|
|
// Created by Frederic Jacobs on 17/11/14.
|
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <YapDatabase/YapDatabaseViewTransaction.h>
|
|
|
|
@interface TSDatabaseView : NSObject
|
|
|
|
extern NSString *TSInboxGroup;
|
|
extern NSString *TSArchiveGroup;
|
|
extern NSString *TSUnreadIncomingMessagesGroup;
|
|
extern NSString *TSSecondaryDevicesGroup;
|
|
|
|
extern NSString *TSThreadDatabaseViewExtensionName;
|
|
extern NSString *TSMessageDatabaseViewExtensionName;
|
|
extern NSString *TSUnreadDatabaseViewExtensionName;
|
|
extern NSString *TSSecondaryDevicesDatabaseViewExtensionName;
|
|
|
|
+ (BOOL)registerThreadDatabaseView;
|
|
+ (BOOL)registerBuddyConversationDatabaseView;
|
|
+ (BOOL)registerUnreadDatabaseView;
|
|
+ (void)asyncRegisterSecondaryDevicesDatabaseView;
|
|
|
|
@end
|