talk-ios icon indicating copy to clipboard operation
talk-ios copied to clipboard

Canceling location sharing destroys chat view

Open SystemKeeper opened this issue 3 years ago • 1 comments

Steps to reproduce

  1. Enter a conversation
  2. Show keyboard
  3. Select attachments and then location
  4. Open keyboard again (tap in the search field)
  5. Press cancel on the top left corner once to dismiss the keyboard and a second time to dismiss the location sharing view

Expected behaviour

See a chat view as usual

Actual behaviour

The keyboard is shown, but there's no input bar above. After closing the keyboard, the input bar is not visible anymore, the attachment and voice-recording buttons are displayed in the safe area.

Device information

Device: iPhone 13 simulator (15.2) and iPhone 11 Pro (15.4.1)

Talk version: 14.0.2

https://user-images.githubusercontent.com/1580193/170588561-4f20ef47-56c1-4777-9209-efaa7654ea8a.mp4

SystemKeeper avatar May 26 '22 22:05 SystemKeeper

2022-05-27 00:26:42.676656+0200 NextcloudTalk[25549:412759] [LayoutConstraints] Unable to simultaneously satisfy constraints.
	Probably at least one of the constraints in the following list is one you don't want. 
	Try this: 
		(1) look at each constraint and try to figure out which you don't expect; 
		(2) find the code that added the unwanted constraint or constraints and fix it. 
(
    "<NSLayoutConstraint:0x600000fd1770 'accessoryView.bottom' _UIRemoteKeyboardPlaceholderView:0x7f8e288763c0.bottom == _UIKBCompatInputView:0x7f8e21fd96d0.top   (active)>",
    "<NSLayoutConstraint:0x600000fca7b0 'assistantHeight' TUISystemInputAssistantView:0x7f8e232106f0.height == 45   (active)>",
    "<NSLayoutConstraint:0x600000fd3110 'assistantView.bottom' TUISystemInputAssistantView:0x7f8e232106f0.bottom == _UIKBCompatInputView:0x7f8e21fd96d0.top   (active)>",
    "<NSLayoutConstraint:0x600000fd0820 'assistantView.top' V:[_UIRemoteKeyboardPlaceholderView:0x7f8e288763c0]-(0)-[TUISystemInputAssistantView:0x7f8e232106f0]   (active)>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x600000fd0820 'assistantView.top' V:[_UIRemoteKeyboardPlaceholderView:0x7f8e288763c0]-(0)-[TUISystemInputAssistantView:0x7f8e232106f0]   (active)>

Easy workaround would be to call dismissKeyboard when pressing the attachment button?!

SystemKeeper avatar May 26 '22 22:05 SystemKeeper