Rocket.Chat.ReactNative icon indicating copy to clipboard operation
Rocket.Chat.ReactNative copied to clipboard

bug: input field for writing messages covers the last message

Open felipe-demola opened this issue 1 year ago • 8 comments

Describe the Bug

The message input field overlays the message in the conversation. Here's a recording of the issue:https://github.com/user-attachments/assets/cdae1029-4326-4bf2-aaac-6280e509f907. In the video, I’m only interacting with the message input field. However, the user info modal opens because the message behind the input field was triggered instead, not the input field itself. Later when I managed to open the keyboard, I had to tap on the far right edge of the input field. This is only possible on iPad, because on iPhone the message takes up the full screen width. Additionally, the keyboard ends up covering the input field, instead of pushing it upward as expected.

Steps to Reproduce

  1. Create an white-labeled version of the iOS client as in ios-app-white-labeling
  2. try to send a message

Expected Behavior

  1. The input field should not cover the last message
  2. Touches on the input field should open the keyboard, not trigger hidden elements
  3. The keyboard should resize or shift the UI so the input field remains visible

Actual Behavior

  1. The message input field overlays the last message
  2. Touches are intercepted by the message behind it
  3. The keyboard covers the message input field instead of moving it upward

Rocket.Chat Server Version

7.7.0

Rocket.Chat App Version

4.61.0.5

Device Name

Ipad 10th generation

OS Version

iPadOS 18.5

Additional Context

The same issue happens on Rocket.Chat App Version 4.60. It doesn't happen at Android version. I verified with git diff --name-only that no changes were made beyond what's described in ios-app-white-labeling.

Files changed:

app.json
ios/NotificationService/Info.plist
ios/NotificationService/NotificationService.entitlements
ios/Podfile.lock
ios/RocketChatRN.xcodeproj/project.pbxproj
ios/RocketChatRN.xcodeproj/xcshareddata/xcschemes/RocketChatRN.xcscheme
ios/RocketChatRN/Info.plist
ios/RocketChatRN/RocketChatRN.entitlements
ios/ShareRocketChatRN/Info.plist
ios/ShareRocketChatRN/ShareRocketChatRN.entitlements

felipe-demola avatar Jun 18 '25 15:06 felipe-demola

There's a keyboard controller refactor here https://github.com/RocketChat/Rocket.Chat.ReactNative/pull/6380

It's not ready yet, but feedbacks welcome. Can you try it on Rocket.Chat beta on TestFlight? https://testflight.apple.com/join/3gcYeoMr

diegolmello avatar Jun 18 '25 16:06 diegolmello

@felipe-demola Any updates? I replied you on the same day and I've been waiting for a month already.

diegolmello avatar Jul 22 '25 13:07 diegolmello

Can also confirm we are seeing the same issue

zenjabba avatar Jul 22 '25 14:07 zenjabba

@zenjabba https://github.com/RocketChat/Rocket.Chat.ReactNative/issues/6425#issuecomment-2985006448

diegolmello avatar Jul 22 '25 14:07 diegolmello

Hii @diegolmello , I faced similar issue in our white labeled app, currently we're on version 4.59, we usually update app every 4-5 months, but we're facing this same issue, I was wondering if #6380 will fix it? also can we directly merge this change or there is a specific commit which we can cherry pick staying on version 4.59

AdityaSingh-02 avatar Jul 29 '25 13:07 AdityaSingh-02

Can you try #6380?

diegolmello avatar Jul 29 '25 13:07 diegolmello

I can confirm that building with 4.63 works great, 4.62 doesn't work.

zenjabba avatar Jul 29 '25 13:07 zenjabba

It's weird issue, it's very rare to reproduce, our users have complaint about it multiple times, @zenjabba is there any specific pattern? also @diegolmello if I directly merge it to 4.59 would it break something else? like I can see you removed few libraries!

AdityaSingh-02 avatar Jul 29 '25 13:07 AdityaSingh-02