Room details: use italic font for state events

This commit is contained in:
giomfo
2014-12-02 16:48:26 +01:00
parent b1d98a83d0
commit 390edac9d5
4 changed files with 55 additions and 44 deletions
@@ -935,7 +935,7 @@ NSString *const kCmdResetUserPowerLevel = @"/deop";
}
// Add unsent label for failed components
for (RoomMessageComponent *component in message.components) {
if (component.status == RoomMessageComponentStatusFailed) {
if (component.style == RoomMessageComponentStyleFailed) {
UILabel *unsentLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, yPosition, outgoingMsgCell.unsentLabelContainer.frame.size.width , 20)];
unsentLabel.text = @"Unsent";
unsentLabel.textAlignment = NSTextAlignmentCenter;