mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-11 11:25:12 +00:00
Monotone-Parent: 1ccd34fd9ea99e675935d745db7e70d19716428a
Monotone-Revision: c40151185171e3ba8a257569b8ab5ec86930d393 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-05-05T14:40:53 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -522,22 +522,32 @@
|
||||
[event setTransparency: (isTransparent? @"TRANSPARENT" : @"OPAQUE")];
|
||||
}
|
||||
|
||||
// TODO: add tentatively
|
||||
- (id) _statusChangeAction: (NSString *) newStatus
|
||||
{
|
||||
[[self clientObject] changeParticipationStatus: newStatus
|
||||
withDelegate: nil];
|
||||
|
||||
return [self responseWith204];
|
||||
}
|
||||
|
||||
- (id) acceptAction
|
||||
{
|
||||
[[self clientObject] changeParticipationStatus: @"ACCEPTED"
|
||||
withDelegate: nil];
|
||||
|
||||
return self;
|
||||
return [self _statusChangeAction: @"ACCEPTED"];
|
||||
}
|
||||
|
||||
- (id) declineAction
|
||||
{
|
||||
[[self clientObject] changeParticipationStatus: @"DECLINED"
|
||||
withDelegate: nil];
|
||||
return [self _statusChangeAction: @"DECLINED"];
|
||||
}
|
||||
|
||||
return self;
|
||||
- (id) needsActionAction
|
||||
{
|
||||
return [self _statusChangeAction: @"NEEDS-ACTION"];
|
||||
}
|
||||
|
||||
- (id) tentativeAction
|
||||
{
|
||||
return [self _statusChangeAction: @"TENTATIVE"];
|
||||
}
|
||||
|
||||
- (id) delegateAction
|
||||
@@ -584,7 +594,7 @@
|
||||
reason: @"missing 'to' parameter"];
|
||||
|
||||
if (!response)
|
||||
response = [self responseWithStatus: 200];
|
||||
response = [self responseWith204];
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user