Skip to content
This repository was archived by the owner on Dec 12, 2022. It is now read-only.

Commit 13cceed

Browse files
committed
Merge branch 'release/0.16.10/master'
2 parents 75f1217 + 35024d7 commit 13cceed

30 files changed

+330
-140
lines changed

CHANGES.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
## Changes in 0.16.10 (2021-11-17)
2+
3+
🙌 Improvements
4+
5+
- Upgrade MatrixSDK version ([v0.20.10](https://github.com/matrix-org/matrix-ios-sdk/releases/tag/v0.20.10)).
6+
7+
🐛 Bugfixes
8+
9+
- MXKRoomViewController: Share sheet is properly presented on iOS 12 when necessary. ([#949](https://github.com/matrix-org/matrix-ios-kit/pull/949))
10+
- MXKRoomTitleView: Remove room summary observer on destroy. ([#951](https://github.com/matrix-org/matrix-ios-kit/pull/951))
11+
- MXKRoomViewController: Fix retain cycles that prevents deallocation. ([#5055](https://github.com/vector-im/element-ios/issues/5055))
12+
- Fix retain cycles that prevents deallocation in several classes. ([#5058](https://github.com/vector-im/element-ios/issues/5058))
13+
- Ensure alerts with weak references are retained until they've been presented. ([#5071](https://github.com/vector-im/element-ios/issues/5071))
14+
- Fix room ordering regression. ([#5105](https://github.com/vector-im/element-ios/issues/5105))
15+
16+
117
## Changes in 0.16.9 (2021-10-21)
218

319
🙌 Improvements

MatrixKit.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "MatrixKit"
4-
s.version = "0.16.9"
4+
s.version = "0.16.10"
55
s.summary = "The Matrix reusable UI library for iOS based on MatrixSDK."
66

77
s.description = <<-DESC
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
2323

2424
s.swift_version = '5.0'
2525

26-
s.dependency 'MatrixSDK', "= 0.20.9"
26+
s.dependency 'MatrixSDK', "= 0.20.10"
2727
s.dependency 'HPGrowingTextView', '~> 1.1'
2828
s.dependency 'libPhoneNumber-iOS', '~> 0.9.13'
2929
s.dependency 'DTCoreText', '~> 1.6.25'

MatrixKit/Assets/MatrixKitAssets.bundle/en.lproj/MatrixKit.strings

+2
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@
281281
"attachment_multiselection_original" = "Actual Size";
282282
"attachment_e2e_keys_file_prompt" = "This file contains encryption keys exported from a Matrix client.\nDo you want to view the file content or import the keys it contains?";
283283
"attachment_e2e_keys_import" = "Import...";
284+
"attachment_unsupported_preview_title" = "Unable to preview";
285+
"attachment_unsupported_preview_message" = "This file type is not supported.";
284286

285287
// Contacts
286288
"contact_mx_users" = "Matrix Users";

MatrixKit/Controllers/MXKAuthenticationViewController.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
/**
147147
The delegate for the view controller.
148148
*/
149-
@property (nonatomic) id<MXKAuthenticationViewControllerDelegate> delegate;
149+
@property (nonatomic, weak) id<MXKAuthenticationViewControllerDelegate> delegate;
150150

151151
/**
152152
current ongoing MXHTTPOperation. Nil if none.

MatrixKit/Controllers/MXKContactDetailsViewController.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
/**
5757
The delegate for the view controller.
5858
*/
59-
@property (nonatomic) id<MXKContactDetailsViewControllerDelegate> delegate;
59+
@property (nonatomic, weak) id<MXKContactDetailsViewControllerDelegate> delegate;
6060

6161
#pragma mark - Class methods
6262

MatrixKit/Controllers/MXKContactListViewController.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
/**
6363
The delegate for the view controller.
6464
*/
65-
@property (nonatomic) id<MXKContactListViewControllerDelegate> delegate;
65+
@property (nonatomic, weak) id<MXKContactListViewControllerDelegate> delegate;
6666

6767
/**
6868
Enable the search option by adding a navigation item in the navigation bar (YES by default).

MatrixKit/Controllers/MXKGroupListViewController.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
/**
4949
The fake top view displayed in case of vertical bounce.
5050
*/
51-
UIView *topview;
51+
__weak UIView *topview;
5252
}
5353

5454
@property (weak, nonatomic) IBOutlet UISearchBar *groupsSearchBar;
@@ -65,7 +65,7 @@
6565
/**
6666
The delegate for the view controller.
6767
*/
68-
@property (nonatomic) id<MXKGroupListViewControllerDelegate> delegate;
68+
@property (nonatomic, weak) id<MXKGroupListViewControllerDelegate> delegate;
6969

7070
/**
7171
Enable the search option by adding a navigation item in the navigation bar (YES by default).

MatrixKit/Controllers/MXKGroupListViewController.m

+7-1
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,11 @@ - (void)viewDidLoad
145145

146146
// Add a top view which will be displayed in case of vertical bounce.
147147
CGFloat height = self.groupsTableView.frame.size.height;
148-
topview = [[UIView alloc] initWithFrame:CGRectMake(0,-height,self.groupsTableView.frame.size.width,height)];
148+
UIView *topview = [[UIView alloc] initWithFrame:CGRectMake(0,-height,self.groupsTableView.frame.size.width,height)];
149149
topview.autoresizingMask = UIViewAutoresizingFlexibleWidth;
150150
topview.backgroundColor = [UIColor groupTableViewBackgroundColor];
151151
[self.groupsTableView addSubview:topview];
152+
self->topview = topview;
152153
}
153154

154155
- (void)viewWillAppear:(BOOL)animated
@@ -513,8 +514,13 @@ - (void)onSyncNotification
513514
{
514515
latestServerSync = [NSDate date];
515516

517+
MXWeakify(self);
518+
516519
// Refresh all groups summary
517520
[self.dataSource refreshGroupsSummary:^{
521+
522+
MXStrongifyAndReturnIfNil(self);
523+
518524
[self removeReconnectingView];
519525
}];
520526
}

MatrixKit/Controllers/MXKRecentListViewController.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ limitations under the License.
5757
/**
5858
The fake top view displayed in case of vertical bounce.
5959
*/
60-
UIView *topview;
60+
__weak UIView *topview;
6161
}
6262

6363
@property (weak, nonatomic) IBOutlet UISearchBar *recentsSearchBar;
@@ -74,7 +74,7 @@ limitations under the License.
7474
/**
7575
The delegate for the view controller.
7676
*/
77-
@property (nonatomic) id<MXKRecentListViewControllerDelegate> delegate;
77+
@property (nonatomic, weak) id<MXKRecentListViewControllerDelegate> delegate;
7878

7979
/**
8080
Enable the search option by adding a navigation item in the navigation bar (YES by default).

MatrixKit/Controllers/MXKRecentListViewController.m

+3-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ @interface MXKRecentListViewController ()
3939
/**
4040
The reconnection animated view.
4141
*/
42-
UIView* reconnectingView;
42+
__weak UIView* reconnectingView;
4343

4444
/**
4545
The current table view header if any.
@@ -146,10 +146,11 @@ - (void)viewDidLoad
146146

147147
// Add a top view which will be displayed in case of vertical bounce.
148148
CGFloat height = self.recentsTableView.frame.size.height;
149-
topview = [[UIView alloc] initWithFrame:CGRectMake(0,-height,self.recentsTableView.frame.size.width,height)];
149+
UIView *topview = [[UIView alloc] initWithFrame:CGRectMake(0,-height,self.recentsTableView.frame.size.width,height)];
150150
topview.autoresizingMask = UIViewAutoresizingFlexibleWidth;
151151
topview.backgroundColor = [UIColor groupTableViewBackgroundColor];
152152
[self.recentsTableView addSubview:topview];
153+
self->topview = topview;
153154
}
154155

155156
- (void)viewWillAppear:(BOOL)animated

MatrixKit/Controllers/MXKRoomMemberDetailsViewController.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ typedef enum : NSUInteger
142142
/**
143143
The delegate for the view controller.
144144
*/
145-
@property (nonatomic) id<MXKRoomMemberDetailsViewControllerDelegate> delegate;
145+
@property (nonatomic, weak) id<MXKRoomMemberDetailsViewControllerDelegate> delegate;
146146

147147
#pragma mark - Class methods
148148

MatrixKit/Controllers/MXKRoomViewController.h

+9-9
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ typedef NS_ENUM(NSUInteger, MXKRoomViewControllerJoinRoomResult) {
5454
/**
5555
Potential event details view.
5656
*/
57-
MXKEventDetailsView *eventDetailsView;
57+
__weak MXKEventDetailsView *eventDetailsView;
5858

5959
/**
6060
Current alert (if any).
6161
*/
62-
UIAlertController *currentAlert;
62+
__weak UIAlertController *currentAlert;
6363

6464
/**
6565
The document interaction Controller used to share attachment
@@ -138,12 +138,12 @@ typedef NS_ENUM(NSUInteger, MXKRoomViewControllerJoinRoomResult) {
138138
/**
139139
The current title view defined into the view controller.
140140
*/
141-
@property (nonatomic, readonly) MXKRoomTitleView* titleView;
141+
@property (nonatomic, weak, readonly) MXKRoomTitleView* titleView;
142142

143143
/**
144144
The current input toolbar view defined into the view controller.
145145
*/
146-
@property (nonatomic, readonly) MXKRoomInputToolbarView* inputToolbarView;
146+
@property (nonatomic, weak, readonly) MXKRoomInputToolbarView* inputToolbarView;
147147

148148
/**
149149
The current extra info view defined into the view controller.
@@ -197,12 +197,12 @@ typedef NS_ENUM(NSUInteger, MXKRoomViewControllerJoinRoomResult) {
197197
This object is defined when the displayed room is left. It is added into the bubbles table header.
198198
This label is used to display the reason why the room has been left.
199199
*/
200-
@property (nonatomic, readonly) UILabel *leftRoomReasonLabel;
200+
@property (nonatomic, weak, readonly) UILabel *leftRoomReasonLabel;
201201

202-
@property (nonatomic) IBOutlet UITableView *bubblesTableView;
203-
@property (nonatomic) IBOutlet UIView *roomTitleViewContainer;
204-
@property (nonatomic) IBOutlet UIView *roomInputToolbarContainer;
205-
@property (nonatomic) IBOutlet UIView *roomActivitiesContainer;
202+
@property (weak, nonatomic) IBOutlet UITableView *bubblesTableView;
203+
@property (weak, nonatomic) IBOutlet UIView *roomTitleViewContainer;
204+
@property (weak, nonatomic) IBOutlet UIView *roomInputToolbarContainer;
205+
@property (weak, nonatomic) IBOutlet UIView *roomActivitiesContainer;
206206

207207
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bubblesTableViewTopConstraint;
208208
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bubblesTableViewBottomConstraint;

0 commit comments

Comments
 (0)