From af0c9c92b631ebeef70d313121cd1a57931105c1 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 2 Apr 2022 20:34:31 -0400 Subject: [PATCH] Fix warning when a post appears in both the pinned and regular sections of a profile --- .../Profile/ProfileStatusesViewController.swift | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Tusker/Screens/Profile/ProfileStatusesViewController.swift b/Tusker/Screens/Profile/ProfileStatusesViewController.swift index 7f9b26e2..497204d8 100644 --- a/Tusker/Screens/Profile/ProfileStatusesViewController.swift +++ b/Tusker/Screens/Profile/ProfileStatusesViewController.swift @@ -92,7 +92,7 @@ class ProfileStatusesViewController: DiffableTimelineLikeTableViewController Bool { - return lhs.id == rhs.id + return lhs.id == rhs.id && lhs.pinned == rhs.pinned } func hash(into hasher: inout Hasher) { hasher.combine(id) + hasher.combine(pinned) } } }