Add weak self reference to closure

This commit is contained in:
David Langley 2022-10-17 18:16:15 +01:00
parent 77e58aa087
commit c0519b3d7b

View file

@ -101,7 +101,8 @@ class WysiwygInputToolbarView: MXKRoomInputToolbarView, NibLoadable, HtmlRoomInp
}, showSendMediaActions: { [weak self] in
guard let self = self else { return }
self.showSendMediaActions()
}).introspectTextView { textView in
}).introspectTextView { [weak self] textView in
guard let self = self else { return }
textView.inputAccessoryView = self.inputAccessoryViewForKeyboard
}