From 14ec52a87e17148c97b4f09ca9ea7eb27370f4cf Mon Sep 17 00:00:00 2001 From: ylecollen Date: Mon, 12 Jan 2015 15:00:35 +0100 Subject: [PATCH] Some "unsent" statuses were irrelevant : Some UILabels were not dismissedw while reusing an UITableViewCell. --- matrixConsole/ViewController/RoomViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrixConsole/ViewController/RoomViewController.m b/matrixConsole/ViewController/RoomViewController.m index 51f5cd3ad..6faa9a51c 100644 --- a/matrixConsole/ViewController/RoomViewController.m +++ b/matrixConsole/ViewController/RoomViewController.m @@ -1343,7 +1343,7 @@ NSString *const kCmdResetUserPowerLevel = @"/deop"; [cell.attachmentView removeGestureRecognizer:cell.attachmentView.gestureRecognizers[0]]; } // Remove potential dateTime (or unsent) label(s) - if (cell.dateTimeLabelContainer.constraints.count) { + if (cell.dateTimeLabelContainer.subviews.count > 0) { if ([NSLayoutConstraint respondsToSelector:@selector(deactivateConstraints:)]) { [NSLayoutConstraint deactivateConstraints:cell.dateTimeLabelContainer.constraints]; } else {