mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-02-16 02:20:53 +00:00
Ensure the host matches for app entries
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user