adium 3408:2fdac8ac99c3: Now *properly* fix online counts on gro...
commits at adium.im
commits at adium.im
Mon Oct 25 11:23:19 UTC 2010
details: http://hg.adium.im/adium/rev/2fdac8ac99c3
revision: 3408:2fdac8ac99c3
author: Thijs Alkemade <thijsalkemade at gmail.com>
date: Mon Oct 25 13:22:24 2010 +0200
Now *properly* fix online counts on groups.
diffs (19 lines):
diff -r 25fd8e23398e -r 2fdac8ac99c3 Source/CBContactCountingDisplayPlugin.m
--- a/Source/CBContactCountingDisplayPlugin.m Sun Oct 24 11:57:06 2010 -0400
+++ b/Source/CBContactCountingDisplayPlugin.m Mon Oct 25 13:22:24 2010 +0200
@@ -141,7 +141,14 @@
NSString *countString = nil;
- NSUInteger onlineObjects = [[inGroup.visibleContainedObjects valueForKeyPath:@"@sum.isOnline"] integerValue];
+ NSUInteger onlineObjects = 0;
+
+ for (AIListObject *listObject in inGroup.visibleContainedObjects) {
+ if ([listObject boolValueForProperty:@"isOnline"]) {
+ onlineObjects++;
+ }
+ }
+
NSUInteger totalObjects = inGroup.countOfContainedObjects;
/*
More information about the commits
mailing list