         }
 
         // The conditional check should help prevent unnecessary re-draws.
-        if let keyboardHC = keyboardHC, keyboardHC.constant != keyboardHeight {
+        if let keyboardHC = keyboardHeightConstraint, keyboardHC.constant != keyboardHeight {
             keyboardHC.constant = keyboardHeight
         }
     }

        dataController.lastSeen = subscription?.lastSeen ?? Date()
    }

    // MARK: Handeling Keyboard

    weak var keyboardHC: NSLayoutConstraint?
    weak var textInputbarHC: NSLayoutConstraint?
    weak var keyboardProxyView: UIView?
    let textInputbarBackground = UIToolbar()
    var oldTextInputbarBgIsTransparent = false

            textInputbar.insertSubview(textInputbarBackground, at: 0)
            textInputbarBackground.translatesAutoresizingMaskIntoConstraints = false

            textInputbarBackgroundHeightConstraint = textInputbarBackground.heightAnchor.constraint(equalTo: textInputbar.heightAnchor, multiplier: 1, constant: view.safeAreaInsets.bottom)
            textInputbarBackgroundHeightConstraint?.isActive = true

            textInputbarBackground.widthAnchor.constraint(equalTo: textInputbar.widthAnchor).isActive = true
            textInputbarBackground.topAnchor.constraint(equalTo: textInputbar.topAnchor).isActive = true
