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

Commit

Permalink
Merge branch 'release/0.14.2/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
manuroe committed Feb 24, 2021
2 parents 866293d + fc7b624 commit ebd95e9
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 20 deletions.
27 changes: 27 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
Changes in 0.14.2 (2021-02-24)
=================================================

✨ Features
*

🙌 Improvements
* MXKRoomDataSource: Notify subclasses on room change.

🐛 Bugfix
*

⚠️ API Changes
*

🗣 Translations
*

🧱 Build
*

Others
*

Improvements:
* Upgrade MatrixSDK version ([v0.18.2](https://github.com/matrix-org/matrix-ios-sdk/releases/tag/v0.18.2)).

Changes in 0.14.1 (2021-02-12)
=================================================

Expand Down
4 changes: 2 additions & 2 deletions MatrixKit.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "MatrixKit"
s.version = "0.14.1"
s.version = "0.14.2"
s.summary = "The Matrix reusable UI library for iOS based on MatrixSDK."

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

s.swift_version = '5.0'

s.dependency 'MatrixSDK', "= 0.18.1"
s.dependency 'MatrixSDK', "= 0.18.2"
s.dependency 'HPGrowingTextView', '~> 1.1'
s.dependency 'libPhoneNumber-iOS', '~> 0.9.13'
s.dependency 'DTCoreText', '~> 1.6.23'
Expand Down
2 changes: 1 addition & 1 deletion MatrixKit/MatrixKitVersion.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

#import <Foundation/Foundation.h>

NSString *const MatrixKitVersion = @"0.14.1";
NSString *const MatrixKitVersion = @"0.14.2";
5 changes: 5 additions & 0 deletions MatrixKit/Models/Room/MXKRoomDataSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,11 @@ extern NSString *const kMXKRoomDataSourceTimelineErrorErrorKey;
*/
- (void)reload;

/**
Called when room property changed. Designed to be used by subclasses.
*/
- (void)roomDidSet;

#pragma mark - Public methods
/**
Get the data for the cell at the given index.
Expand Down
23 changes: 20 additions & 3 deletions MatrixKit/Models/Room/MXKRoomDataSource.m
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ Current pagination request (if any)
*/
@property (nonatomic, assign) BOOL shouldStopBackPagination;

@property (nonatomic, readwrite) MXRoom *room;

@end

@implementation MXKRoomDataSource
Expand Down Expand Up @@ -482,7 +484,7 @@ - (void)reset
[eventIdToBubbleMap removeAllObjects];
}

_room = nil;
self.room = nil;
}

_serverSyncEventCount = 0;
Expand Down Expand Up @@ -567,11 +569,11 @@ - (void)didMXSessionStateChange
// Are we peeking into a random room or displaying a room the user is part of?
if (peekingRoom)
{
_room = peekingRoom;
self.room = peekingRoom;
}
else
{
_room = [self.mxSession roomWithRoomId:_roomId];
self.room = [self.mxSession roomWithRoomId:_roomId];
}

if (_room)
Expand Down Expand Up @@ -1058,6 +1060,21 @@ - (void)setDelegate:(id<MXKDataSourceDelegate>)delegate
}
}

- (void)setRoom:(MXRoom *)room
{
if (![_room isEqual:room])
{
_room = room;

[self roomDidSet];
}
}

- (void)roomDidSet
{

}

#pragma mark - KVO

- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
Expand Down
2 changes: 1 addition & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ abstract_target 'MatrixKitSamplePods' do

# Different flavours of pods to Matrix SDK
# The tagged version on which this version of MatrixKit has been built
pod 'MatrixSDK', '= 0.18.1'
pod 'MatrixSDK', '= 0.18.2'

# The lastest release available on the CocoaPods repository
#pod 'MatrixSDK'
Expand Down
26 changes: 13 additions & 13 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ PODS:
- JSQSystemSoundPlayer (2.0.1)
- libbase58 (0.1.4)
- libPhoneNumber-iOS (0.9.15)
- MatrixSDK (0.18.1):
- MatrixSDK/Core (= 0.18.1)
- MatrixSDK/Core (0.18.1):
- MatrixSDK (0.18.2):
- MatrixSDK/Core (= 0.18.2)
- MatrixSDK/Core (0.18.2):
- AFNetworking (~> 4.0.0)
- GZIP (~> 1.3.0)
- libbase58 (~> 0.1.4)
- OLMKit (~> 3.1.0)
- OLMKit (~> 3.2.2)
- Realm (= 10.1.4)
- OLMKit (3.1.0):
- OLMKit/olmc (= 3.1.0)
- OLMKit/olmcpp (= 3.1.0)
- OLMKit/olmc (3.1.0)
- OLMKit/olmcpp (3.1.0)
- OLMKit (3.2.2):
- OLMKit/olmc (= 3.2.2)
- OLMKit/olmcpp (= 3.2.2)
- OLMKit/olmc (3.2.2)
- OLMKit/olmcpp (3.2.2)
- Realm (10.1.4):
- Realm/Headers (= 10.1.4)
- Realm/Headers (10.1.4)
Expand All @@ -62,7 +62,7 @@ DEPENDENCIES:
- HPGrowingTextView (~> 1.1)
- JSQMessagesViewController (~> 7.2.0)
- libPhoneNumber-iOS (~> 0.9.13)
- MatrixSDK (= 0.18.1)
- MatrixSDK (= 0.18.2)

SPEC REPOS:
trunk:
Expand Down Expand Up @@ -91,10 +91,10 @@ SPEC CHECKSUMS:
JSQSystemSoundPlayer: c5850e77a4363ffd374cd851154b9af93264ed8d
libbase58: 7c040313537b8c44b6e2d15586af8e21f7354efd
libPhoneNumber-iOS: 0a32a9525cf8744fe02c5206eb30d571e38f7d75
MatrixSDK: 7d5faf810eab02a189df64aef28583c8bed81f5c
OLMKit: 4ee0159d63feeb86d836fdcfefe418e163511639
MatrixSDK: b37cb20c40c77d1f64af2427f3c547611f8b5ec8
OLMKit: 20d1c564033a1ae7148f8f599378d4c798363905
Realm: 80f4fb2971ccb9adc27a47d0955ae8e533a7030b

PODFILE CHECKSUM: c39efdcb46b89ce6146a2ec892ad46f99c1aabb3
PODFILE CHECKSUM: 2055cf652368ec959b2c25efc2291086f5d35e01

COCOAPODS: 1.10.0

0 comments on commit ebd95e9

Please sign in to comment.