1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-03 09:57:46 +01:00
Telegram/Telegraph/TGResetPeerNotificationsActor.m
2014-07-10 18:11:09 +04:00

26 lines
564 B
Objective-C

#import "TGResetPeerNotificationsActor.h"
#import "ActionStage.h"
#import "TGDatabase.h"
#import "TGTelegraph.h"
@implementation TGResetPeerNotificationsActor
+ (NSString *)genericPath
{
return @"/tg/resetPeerSettings";
}
- (void)execute:(NSDictionary *)__unused options
{
[TGDatabaseInstance() clearPeerNotificationSettings:true];
[ActionStageInstance() requestActor:@"/tg/service/synchronizeserviceactions/(settings)" options:nil watcher:TGTelegraphInstance];
[ActionStageInstance() actionCompleted:self.path result:nil];
}
@end