Notifications Protocol cleanup.
This commit is contained in:
parent
5d91a5bd4f
commit
8d6ce0b57c
@ -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
|
||||
|
||||
@ -14,10 +14,10 @@
|
||||
|
||||
@protocol NotificationsProtocol <NSObject>
|
||||
|
||||
+ (void)notifyUserForIncomingMessage:(TSIncomingMessage *)incomingMessage
|
||||
- (void)notifyUserForIncomingMessage:(TSIncomingMessage *)incomingMessage
|
||||
from:(NSString *)name
|
||||
inThread:(TSThread *)thread;
|
||||
|
||||
+ (void)notifyUserForErrorMessage:(TSErrorMessage *)error inThread:(TSThread *)thread;
|
||||
- (void)notifyUserForErrorMessage:(TSErrorMessage *)error inThread:(TSThread *)thread;
|
||||
|
||||
@end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user