mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
Merge branch 'Johennes-feature/recents-leak' into develop
This commit is contained in:
commit
5f4ca4635b
2 changed files with 4 additions and 0 deletions
|
@ -421,9 +421,12 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
|
|||
if ((aState == MXKDataSourceStateReady) && dataSource.mxSession.myUser.userId)
|
||||
{
|
||||
// Register the room tags updates to refresh the favorites order
|
||||
MXWeakify(self);
|
||||
id roomTagsListener = [dataSource.mxSession listenToEventsOfTypes:@[kMXEventTypeStringRoomTag]
|
||||
onEvent:^(MXEvent *event, MXTimelineDirection direction, id customObject) {
|
||||
|
||||
MXStrongifyAndReturnIfNil(self);
|
||||
|
||||
// Consider only live event
|
||||
if (direction == MXTimelineDirectionForwards)
|
||||
{
|
||||
|
|
1
changelog.d/pr-4193.bugfix
Normal file
1
changelog.d/pr-4193.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
RecentsDataSource: Memory leak in [RecentsDataSource dataSource:didStateChange:].
|
Loading…
Reference in a new issue