Reactions menu: Patch RoomContextualMenuPresenter while we have a retain cycle

This commit is contained in:
manuroe
2019-05-21 02:12:14 +02:00
parent 2ac4d8ac2b
commit a749211223
@@ -88,6 +88,10 @@ final class RoomContextualMenuPresenter: NSObject {
let animationCompletionInstructions: (() -> Void) = {
roomContextualMenuViewController.vc_removeFromParent()
// TODO: To remove once the retain cycle caused by reactionsMenuViewModel is fixed
self.roomContextualMenuViewController = nil
completion?()
}