Ensure the host matches for app entries

This commit is contained in:
Cameron Gutman
2016-01-21 15:01:15 -05:00
parent 4439c7cce6
commit ad1b9059ee

View File

@@ -33,7 +33,7 @@
}
- (NSUInteger)hash {
return [self.id intValue];
return [self.host.uuid hash] * 31 + [self.id intValue];
}
- (BOOL)isEqual:(id)object {
@@ -45,7 +45,8 @@
return NO;
}
return [self.id isEqualToString:((App*)object).id];
return [self.host.uuid isEqualToString:((App*)object).host.uuid] &&
[self.id isEqualToString:((App*)object).id];
}
@end