mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-25 02:52:45 +02:00
Retrying & deleting failed messages
- Added unsent notice to tab bar room items
This commit is contained in:
@@ -179,6 +179,11 @@ extern NSString *const kRecentsDataSourceTapOnDirectoryServerChange;
|
||||
*/
|
||||
@property (nonatomic, readonly) NSUInteger missedHighlightDirectDiscussionsCount;
|
||||
|
||||
/**
|
||||
The current number of the direct chats with unsent messages.
|
||||
*/
|
||||
@property (nonatomic, readonly) NSUInteger unsentMessagesDirectDiscussionsCount;
|
||||
|
||||
/**
|
||||
The current number of the group chats with missed notifications, including the invites.
|
||||
*/
|
||||
@@ -189,4 +194,9 @@ extern NSString *const kRecentsDataSourceTapOnDirectoryServerChange;
|
||||
*/
|
||||
@property (nonatomic, readonly) NSUInteger missedHighlightGroupDiscussionsCount;
|
||||
|
||||
/**
|
||||
The current number of the group chats with unsent messages.
|
||||
*/
|
||||
@property (nonatomic, readonly) NSUInteger unsentMessagesGroupDiscussionsCount;
|
||||
|
||||
@end
|
||||
|
||||
@@ -1146,6 +1146,8 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
|
||||
_missedFavouriteDiscussionsCount = _missedHighlightFavouriteDiscussionsCount = 0;
|
||||
_missedDirectDiscussionsCount = _missedHighlightDirectDiscussionsCount = 0;
|
||||
_missedGroupDiscussionsCount = _missedHighlightGroupDiscussionsCount = 0;
|
||||
_unsentMessagesDirectDiscussionsCount = 0;
|
||||
_unsentMessagesGroupDiscussionsCount = 0;
|
||||
|
||||
secureBackupBannerSection = directorySection = favoritesSection = peopleSection = conversationSection = lowPrioritySection = serverNoticeSection = invitesSection = -1;
|
||||
|
||||
@@ -1282,6 +1284,18 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
|
||||
}
|
||||
}
|
||||
|
||||
if (room.sentStatus != RoomSentStatusOk)
|
||||
{
|
||||
if (room.isDirect)
|
||||
{
|
||||
_unsentMessagesDirectDiscussionsCount ++;
|
||||
}
|
||||
else
|
||||
{
|
||||
_unsentMessagesGroupDiscussionsCount ++;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (_recentsDataSourceMode == RecentsDataSourceModeHome)
|
||||
|
||||
Reference in New Issue
Block a user