|
|
|
@ -8,7 +8,6 @@
|
|
|
|
|
|
|
|
|
|
#import "TSMessagesManager.h"
|
|
|
|
|
|
|
|
|
|
#import <AudioToolbox/AudioToolbox.h>
|
|
|
|
|
#import <AxolotlKit/AxolotlExceptions.h>
|
|
|
|
|
#import <AxolotlKit/SessionCipher.h>
|
|
|
|
|
#import <TextSecureKit/TSAccountManager.h>
|
|
|
|
@ -26,8 +25,6 @@
|
|
|
|
|
|
|
|
|
|
@interface TSMessagesManager ()
|
|
|
|
|
|
|
|
|
|
@property SystemSoundID newMessageSound;
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
@implementation TSMessagesManager
|
|
|
|
@ -46,9 +43,6 @@
|
|
|
|
|
|
|
|
|
|
if (self) {
|
|
|
|
|
_dbConnection = [TSStorageManager sharedManager].newDatabaseConnection;
|
|
|
|
|
NSURL *newMessageSound =
|
|
|
|
|
[NSURL URLWithString:[[NSBundle mainBundle] pathForResource:@"NewMessage" ofType:@"aifc"]];
|
|
|
|
|
AudioServicesCreateSystemSoundID((__bridge CFURLRef)newMessageSound, &_newMessageSound);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return self;
|
|
|
|
@ -453,8 +447,4 @@
|
|
|
|
|
return numberOfItems;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (void)dealloc {
|
|
|
|
|
AudioServicesDisposeSystemSoundID(_newMessageSound);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|