Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
JanNikGra committed Apr 19, 2023
1 parent 9fec550 commit cfaf594
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MatrixSDK/MXSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -3199,8 +3199,8 @@ - (void)removeRoom:(NSString *)roomId
// And remove the room and its summary from the list
[rooms removeObjectForKey:roomId];
[roomSummaries removeObjectForKey:roomId];
// remove room from breadcrub list
[self removeBreadcrumbWithRoomId: roomId];
// Remove room from breadcrub list
[self removeBreadcrumbWithRoomWithId: roomId];

// Broadcast the left room
[[NSNotificationCenter defaultCenter] postNotificationName:kMXSessionDidLeaveRoomNotification
Expand Down Expand Up @@ -4760,8 +4760,8 @@ - (void)updateBreadcrumbsWithRoomWithId:(NSString *)roomId
}];
}

// update breadcrub list when leaving a room
- (void)removeBreadcrumbWithRoomId:(NSString *)roomId
// Update breadcrub list when leaving a room
- (void)removeBreadcrumbWithRoomWithId:(NSString *)roomId
{
NSDictionary<NSString *, NSArray *> *breadcrumbs = [self.accountData accountDataForEventType:kMXAccountDataTypeBreadcrumbs];

Expand Down

0 comments on commit cfaf594

Please sign in to comment.