Open krenuser opened 2 years ago
@debdutdeb this doesn't seem to be an Electron issue. Did you take a look at the logs?
The issue mentioned this only happening on the desktop app 🙈 made sense to transfer here for further investigation.
This is /app/bundle/programs/web.browser/dynamic/client/views/room/MessageList/components/MessageContent.tsx
file (pretty-printed) in RockerChat Docker container:
It has been mentioned in DevConsole error. Adding two highlighted conditions to the file fixes my problem (checked by editing source directly in container and restarting server, cleaning cache and storage data in client). Unfortunately, I'm new to Meteor, React and TypeScript, and can't find corresponding source in RC/RC.Electron repo.
This is
/app/bundle/programs/web.browser/dynamic/client/views/room/MessageList/components/MessageContent.tsx
file (pretty-printed) in RockerChat Docker container:It has been mentioned in DevConsole error. Adding two highlighted conditions to the file fixes my problem (checked by editing source directly in container and restarting server, cleaning cache and storage data in client). Unfortunately, I'm new to Meteor, React and TypeScript, and can't find corresponding source in RC/RC.Electron repo.
I think that this is the line: https://github.com/RocketChat/Rocket.Chat/blob/develop/apps/meteor/client/views/room/MessageList/components/MessageContent.tsx#L85
Please @debdutdeb could you validate this?
Seems that issue should be returned to Rocket.Chat repo.
Found issues in https://github.com/RocketChat/Rocket.Chat repo:
apps/meteor/client/views/room/MessageList/components/MessageContent.tsx:85
and
apps/meteor/client/views/room/MessageList/components/MessageContent.tsx:92
Checks for message.replies
should be added.
Thanks for checking folks. You're right. Transfering to main repo. BTW - PRs are welcome ;)
BTW - PRs are welcome ;)
@debdutdeb , preparing one now)
Still here in 5.1.2. Hasn't fix above been included to 5.1.2 build?
Hello, My server is 6.3.1 and client is 3.9.6. My user has show the same error message.
Oops! Something went wrong. Please reload the page or contact an administrator.
Description:
"Oops! Something went wrong. Please reload the page or contact an administrator." error while viewing some chats. Problem occurs only in Desktop App and only for some group chats (I haven't found any differences in chats working fine and failing). Browser version works fine for all chats failing in Desktop app.
Enabling "Use legacy message template" in My Account > Preferences fixes the problem.
Steps to reproduce:
Expected behavior:
Chat is opened, all messages are visible, history is being loaded while scrolling.
Actual behavior:
[+] chat opened [+] message history shown [!] in 2-3 seconds after chat is opened and message history shown
Server Setup Information:
Client Setup Information
Additional context
none
Relevant logs:
Browser logs:
[Browser logs pasted as text here become unreadable]
"componentStack" property for
Uncaught Error: TypeError: Cannot read properties of undefined (reading 'indexOf')
(num.2 on the screenshot)SERVER LOGS No relevant logs