Review changes

This commit is contained in:
Aram Sargsyan
2017-06-23 16:40:09 +04:00
parent 4f9e044849
commit e0d393350b
5 changed files with 16 additions and 16 deletions
+2 -6
View File
@@ -167,7 +167,6 @@
NSArray* receipts = [self.room getEventReceipts:component.event.eventId sorted:YES];
NSMutableArray *roomMembers;
NSMutableArray *placeholders;
NSMutableArray *receiptDescriptions;
// Check whether some receipts are found
if (receipts.count)
@@ -175,9 +174,6 @@
// Retrieve the corresponding room members
roomMembers = [[NSMutableArray alloc] initWithCapacity:receipts.count];
placeholders = [[NSMutableArray alloc] initWithCapacity:receipts.count];
receiptDescriptions = [[NSMutableArray alloc] initWithCapacity:receipts.count];
MXKEventFormatter *formatter = (MXKEventFormatter*)self.mxSession.roomSummaryUpdateDelegate;
for (MXReceiptData* data in receipts)
{
@@ -186,7 +182,6 @@
{
[roomMembers addObject:roomMember];
[placeholders addObject:[AvatarGenerator generateAvatarForMatrixItem:roomMember.userId withDisplayName:roomMember.displayname]];
[receiptDescriptions addObject:[formatter dateStringFromTimestamp:data.ts withTime:YES]];
}
}
}
@@ -206,7 +201,8 @@
avatarsContainer.tag = index;
[avatarsContainer refreshReceiptSenders:roomMembers withPlaceHolders:placeholders andAlignment:ReadReceiptAlignmentRight];
avatarsContainer.recieptDescriptions = receiptDescriptions;
avatarsContainer.mxSession = self.mxSession;
avatarsContainer.readReceipts = receipts;
avatarsContainer.translatesAutoresizingMaskIntoConstraints = NO;
avatarsContainer.accessibilityIdentifier = @"readReceiptsContainer";