Merge branch 'Johennes-feature/recents-leak' into develop

This commit is contained in:
manuroe 2021-10-01 11:35:25 +01:00
commit 5f4ca4635b
2 changed files with 4 additions and 0 deletions

View file

@ -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)
{

View file

@ -0,0 +1 @@
RecentsDataSource: Memory leak in [RecentsDataSource dataSource:didStateChange:].