mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-18 22:50:54 +00:00
Ensure the host matches for app entries
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (NSUInteger)hash {
|
- (NSUInteger)hash {
|
||||||
return [self.id intValue];
|
return [self.host.uuid hash] * 31 + [self.id intValue];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)isEqual:(id)object {
|
- (BOOL)isEqual:(id)object {
|
||||||
@@ -45,7 +45,8 @@
|
|||||||
return NO;
|
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
|
@end
|
||||||
|
|||||||
Reference in New Issue
Block a user