mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Fix retain cycle in MXKRoomDataSource
Relates to: #5058 Signed-off-by: Johannes Marbach <johannesm@element.io>
This commit is contained in:
@@ -1075,8 +1075,11 @@ typedef NS_ENUM (NSUInteger, MXKRoomDataSourceError) {
|
||||
}
|
||||
|
||||
// Register a listener to handle redaction which can affect live and past timelines
|
||||
MXWeakify(self);
|
||||
redactionListener = [_timeline listenToEventsOfTypes:@[kMXEventTypeStringRoomRedaction] onEvent:^(MXEvent *redactionEvent, MXTimelineDirection direction, MXRoomState *roomState) {
|
||||
|
||||
MXStrongifyAndReturnIfNil(self);
|
||||
|
||||
// Consider only live redaction events
|
||||
if (direction == MXTimelineDirectionForwards)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user