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.
32 lines
757 B
Objective-C
32 lines
757 B
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "OWS107LegacySounds.h"
|
|
#import "OWSSounds.h"
|
|
#import <YapDatabase/YapDatabaseTransaction.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
// Increment a similar constant for every future DBMigration
|
|
static NSString *const OWS107LegacySoundsMigrationId = @"107";
|
|
|
|
@implementation OWS107LegacySounds
|
|
|
|
+ (NSString *)migrationId
|
|
{
|
|
return OWS107LegacySoundsMigrationId;
|
|
}
|
|
|
|
- (void)runUpWithTransaction:(YapDatabaseReadWriteTransaction *)transaction
|
|
{
|
|
OWSAssert(transaction);
|
|
|
|
[OWSSounds setGlobalNotificationSound:OWSSound_ClassicNotification transaction:transaction];
|
|
[OWSSounds setGlobalRingtoneSound:OWSSound_ClassicRingtone transaction:transaction];
|
|
}
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|