From 2a51c94c2001ec5ee6adde3242059fc77bb75a4c Mon Sep 17 00:00:00 2001 From: manuroe Date: Tue, 26 Sep 2017 16:10:42 +0200 Subject: [PATCH] Fixed warnings now detected by Xcode 9 --- Riot/Views/RoomBubbleList/RoomEmptyBubbleCell.m | 2 ++ Riot/Views/RoomBubbleList/RoomMembershipBubbleCell.m | 2 ++ Riot/Views/RoomBubbleList/RoomMembershipCollapsedBubbleCell.m | 2 ++ 3 files changed, 6 insertions(+) diff --git a/Riot/Views/RoomBubbleList/RoomEmptyBubbleCell.m b/Riot/Views/RoomBubbleList/RoomEmptyBubbleCell.m index 71ba494ee..5b7fe73b2 100644 --- a/Riot/Views/RoomBubbleList/RoomEmptyBubbleCell.m +++ b/Riot/Views/RoomBubbleList/RoomEmptyBubbleCell.m @@ -20,6 +20,8 @@ - (void)prepareForReuse { + [super prepareForReuse]; + if (self.heightConstraint != 0) { self.heightConstraint = 0; diff --git a/Riot/Views/RoomBubbleList/RoomMembershipBubbleCell.m b/Riot/Views/RoomBubbleList/RoomMembershipBubbleCell.m index 5e25cf6e1..5073402c3 100644 --- a/Riot/Views/RoomBubbleList/RoomMembershipBubbleCell.m +++ b/Riot/Views/RoomBubbleList/RoomMembershipBubbleCell.m @@ -45,6 +45,8 @@ - (void)prepareForReuse { + [super prepareForReuse]; + if (self.pictureViewTopConstraint.constant != xibPictureViewTopConstraintConstant) { self.pictureViewTopConstraint.constant = xibPictureViewTopConstraintConstant; diff --git a/Riot/Views/RoomBubbleList/RoomMembershipCollapsedBubbleCell.m b/Riot/Views/RoomBubbleList/RoomMembershipCollapsedBubbleCell.m index 193a8d6ca..b24f91fac 100644 --- a/Riot/Views/RoomBubbleList/RoomMembershipCollapsedBubbleCell.m +++ b/Riot/Views/RoomBubbleList/RoomMembershipCollapsedBubbleCell.m @@ -45,6 +45,8 @@ - (void)prepareForReuse { + [super prepareForReuse]; + // Reset avatars for (UIView *avatarView in self.avatarsView.subviews) {