mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
31 lines
668 B
Mathematica
31 lines
668 B
Mathematica
|
//
|
||
|
// 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];
|
||
|
}
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|