1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-04 02:17:51 +01:00
Telegram/Telegraph/TGResetPeerNotificationsActor.m

26 lines
564 B
Mathematica
Raw Normal View History

2014-07-10 16:11:09 +02:00
#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