adium 2311:f15117318281: Er, we *do* need to check the account's...
commits at adium.im
commits at adium.im
Mon May 25 02:34:15 UTC 2009
details: http://hg.adium.im/adium/rev/f15117318281
revision: 2311:f15117318281
author: Zachary West <zacw at adium.im>
date: Sun May 24 22:34:03 2009 -0400
Er, we *do* need to check the account's IdleSince, in case it has a forced status, before we check global.
diffstat:
Plugins/Purple Service/CBPurpleAccount.m | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 62b9de6f32db -r f15117318281 Plugins/Purple Service/CBPurpleAccount.m
--- a/Plugins/Purple Service/CBPurpleAccount.m Sun May 24 22:30:55 2009 -0400
+++ b/Plugins/Purple Service/CBPurpleAccount.m Sun May 24 22:34:03 2009 -0400
@@ -2258,7 +2258,12 @@
AILog(@"%@: Updating status for key: %@",self, key);
if ([key isEqualToString:@"IdleSince"]) {
- NSDate *idleSince = [adium.preferenceController preferenceForKey:@"IdleSince" group:GROUP_ACCOUNT_STATUS];
+ NSDate *idleSince = [self preferenceForKey:@"IdleSince" group:GROUP_ACCOUNT_STATUS];
+
+ if (!idleSince) {
+ idleSince = [adium.preferenceController preferenceForKey:@"IdleSince" group:GROUP_ACCOUNT_STATUS];
+ }
+
[self setAccountIdleSinceTo:idleSince];
} else if ([key isEqualToString:@"TextProfile"]) {
More information about the commits
mailing list