Retrying & deleting failed messages

- If users press on Retry, send again the message and display a loading wheel
- code and UI tweaks
This commit is contained in:
Gil Eluard
2021-03-03 10:27:08 +01:00
parent 1862197c39
commit 8d4d7c821f
7 changed files with 32 additions and 130 deletions
@@ -116,7 +116,17 @@ static const CGFloat kDirectRoomBorderWidth = 3.0;
}
// Notify unreads and bing
if (roomCellData.hasUnread)
if (roomCellData.roomSummary.room.summary.membership == MXMembershipInvite
|| roomCellData.roomSummary.room.sentStatus != MXRoomSentStatusOk)
{
self.badgeLabel.hidden = NO;
self.badgeLabel.badgeColor = ThemeService.shared.theme.noticeColor;
self.badgeLabel.text = @"!";
// Use bold font for the room title
self.roomTitle.font = self.roomTitle1.font = self.roomTitle2.font = [UIFont systemFontOfSize:13 weight:UIFontWeightBold];
}
else if (roomCellData.hasUnread)
{
if (0 < roomCellData.notificationCount)
{
@@ -128,16 +138,6 @@ static const CGFloat kDirectRoomBorderWidth = 3.0;
// Use bold font for the room title
self.roomTitle.font = self.roomTitle1.font = self.roomTitle2.font = [UIFont systemFontOfSize:13 weight:UIFontWeightBold];
}
else if (roomCellData.roomSummary.room.summary.membership == MXMembershipInvite
|| roomCellData.roomSummary.room.sentStatus != MXRoomSentStatusOk)
{
self.badgeLabel.hidden = NO;
self.badgeLabel.badgeColor = ThemeService.shared.theme.noticeColor;
self.badgeLabel.text = @"!";
// Use bold font for the room title
self.roomTitle.font = self.roomTitle1.font = self.roomTitle2.font = [UIFont systemFontOfSize:13 weight:UIFontWeightBold];
}
else
{
// The room title is not bold anymore