session-ios/SignalServiceKit/src/Storage/TSStorageKeys.h
Michael Kirk 0706edf42a Generate new registrationId on re-register
In order for others to know they should start a new session with us, we
need to change our registration id.

To achieve this, I consolidated all the Account related attributes on
TSAccountManager - luckily they were already in the proper collection, I
just moved the API to hang on the AccountManager instead of a TSStorage
category extension.

Also:

@synchronize access to `registrationId`

// FREEBIE
2017-11-02 16:05:41 -04:00

26 lines
574 B
C

//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#ifndef TextSecureKit_TSStorageKeys_h
#define TextSecureKit_TSStorageKeys_h
/**
* Preferences exposed to the user
*/
#pragma mark User Preferences
#define TSStorageUserPreferencesCollection @"TSStorageUserPreferencesCollection"
/**
* Internal settings of the application, not exposed to the user.
*/
#pragma mark Internal Settings
#define TSStorageInternalSettingsCollection @"TSStorageInternalSettingsCollection"
#define TSStorageInternalSettingsVersion @"TSLastLaunchedVersion"
#endif