# Previously submitted content is restored to the input screen

**URL:** <https://forums.rocket.chat/t/previously-submitted-content-is-restored-to-the-input-screen/20727>\
**Category:** Community Support\
**Created:** [October 8, 2024, 9:24am UTC](https://forums.rocket.chat/t/previously-submitted-content-is-restored-to-the-input-screen/20727 "2024-10-08T09:24:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksuzuki](https://avatars.discourse-cdn.com/v4/letter/k/a183cd/32.png) [@ksuzuki](https://forums.rocket.chat/u/ksuzuki)\
**Post date:** [October 8, 2024, 9:24am UTC](https://forums.rocket.chat/t/previously-submitted-content-is-restored-to-the-input-screen/20727/1 "2024-10-08T09:24:13Z")

</div>

The following events are occurring.  
When the user changes channels and returns, the previously transmitted contents are restored to the input screen. This phenomenon occurs especially when a file is sent.  
(Enter message → drag and drop file to be sent → send → change channel → move to original channel → message is restored to the input screen)

Do you know the cause or how to deal with it?

Sorry if there is a mistake in translation.

Server configuration information:  
Rocket.Chat server version: 6.12.1  
Operating system: Ubuntu 20.04  
DB replica set Oplog: 5.0 (featureCompatibilityVersion: { version: ‘5.0’ },)  
Nodejs version: 14.19.3  
MongoDB version: 5.0.28  
Upgrade history:  
RocketChat3.12.0 → RocketChat3.18.7 → remove nodejs12 → mongodb (4.0.23 → 4.2 → 4.4 -\>) raise to 5.0.28 → RocketChat4.8.7 (install nodejs14 at the same time) → RocketChat5 .4.10→RocketChat 6.12.1  
Best regards

---

<div class="post-metadata">

**Author:** ![reetp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/reetp/32/5546_2.png) [@reetp](https://forums.rocket.chat/u/reetp)\
**Post date:** [October 8, 2024, 12:03pm UTC](https://forums.rocket.chat/t/previously-submitted-content-is-restored-to-the-input-screen/20727/2 "2024-10-08T12:03:01Z")

</div>

I think there are some issues with 6.12.1 and channels/scrolling etc

> <https://github.com/RocketChat/Rocket.Chat/issues/33469>
>
> \### Description:
> 
> Hello,
> 
> When you visit a channel and come back to it, you …can't load history: infinite scroll not working and you can't get previous messages.
> 
> This bug is reproduced on https://open.rocket.chat/ too and it's very annoying!
> 
> How can we fix that?
> 
> Thank you for your help!
> 
> \### Steps to reproduce:
> 
> 1. Go to a channel (ie: \*\*general\*\*)
> 2. Go to another channel (ie: \*\*support\*\*)
> 3. Go back to the previous channel (ie: \*\*general\*\*)
> 4. Scroll to the top of the page until older messages are loaded in ajax
> 
> \### Expected behavior:
> 
> We are supposed to have infinite scroll as well as a loading animation to retrieve messages older than those displayed on first loading using ajax.
> 
> \### Actual behavior:
> 
> Nothing is happening: we are stuck at the top of the page and older messages are not loading.
> \<img width="1097" alt="image" src="https://github.com/user-attachments/assets/90be97c5-95f6-4199-9c18-da48576afbfd"\>
> 
> Note: This works the very first time the channel loads! If you want to retrieve older messages on a channel you have already visited, you must refresh the page.
> 
> \### Server Setup Information:
> 
> Version of Rocket.Chat Server: 6.12.1
> License Type: Community
> Number of Users: 100-500
> Operating System: Debian 11
> Deployment Method: tar
> Number of Running Instances: 1
> DB Replicaset Oplog: 1
> NodeJS Version: v14.21.3
> MongoDB Version: 5.0.21
> 
> \### Client Setup Information
> 
> \- Desktop App or Browser Version: all latest browsers / applications
> \- Operating System: MacOS / iOS

See if that looks like your issue.

Also test on open rocket.chat with both the client and a browser.

---

<div class="post-metadata">

**Author:** ![ksuzuki](https://avatars.discourse-cdn.com/v4/letter/k/a183cd/32.png) [@ksuzuki](https://forums.rocket.chat/u/ksuzuki)\
**Post date:** [October 9, 2024, 1:31am UTC](https://forums.rocket.chat/t/previously-submitted-content-is-restored-to-the-input-screen/20727/3 "2024-10-09T01:31:08Z")

</div>

Hmmm, it is not that the history cannot be loaded, but rather that when you move to another channel and then come back to the original channel, the sent message is restored to the input screen.  
I checked and it doesn’t seem to happen with open.rocket.chat.

---

<div class="post-metadata">

**Author:** ![reetp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/reetp/32/5546_2.png) [@reetp](https://forums.rocket.chat/u/reetp)\
**Post date:** [October 9, 2024, 12:46pm UTC](https://forums.rocket.chat/t/previously-submitted-content-is-restored-to-the-input-screen/20727/4 "2024-10-09T12:46:53Z")

</div>

What is the client?

I have seen this in the Android app but I have not seen it in a browser.

---

<div class="post-metadata">

**Author:** ![ksuzuki](https://avatars.discourse-cdn.com/v4/letter/k/a183cd/32.png) [@ksuzuki](https://forums.rocket.chat/u/ksuzuki)\
**Post date:** [October 10, 2024, 12:30am UTC](https://forums.rocket.chat/t/previously-submitted-content-is-restored-to-the-input-screen/20727/5 "2024-10-10T00:30:04Z")

</div>

We use a desktop application and a browser.  
Have you been able to determine the cause or find a solution to the problem when it occurs in the Android app?
