bug: input field for writing messages covers the last message
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
- Create an white-labeled version of the iOS client as in ios-app-white-labeling
- try to send a message
Expected Behavior
- The input field should not cover the last message
- Touches on the input field should open the keyboard, not trigger hidden elements
- The keyboard should resize or shift the UI so the input field remains visible
Actual Behavior
- The message input field overlays the last message
- Touches are intercepted by the message behind it
- 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
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
@felipe-demola Any updates? I replied you on the same day and I've been waiting for a month already.
Can also confirm we are seeing the same issue
@zenjabba https://github.com/RocketChat/Rocket.Chat.ReactNative/issues/6425#issuecomment-2985006448
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
Can you try #6380?
I can confirm that building with 4.63 works great, 4.62 doesn't work.
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!