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 05f31f1099
commit 738a43e76f
@@ -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?()
}