Messages from Realtime subscriptions do not have an unique id
Description:
When subscribed to a room. the messages from the subscription sent by the Rocket.Chat server do not have an unique id, it seems that somewhere in the server instead of the id variable, an "id" string is sent by mistake.
Steps to reproduce:
Subscribe to a room Write a message in the room Capture the WebSocket response
Expected behavior:
The response should have an randomly generated ID
Actual behavior:
The response has the id set to the string "id"
Server Setup Information:
The current Rocket.Chat trial server:
+--------------------------------------------------------+
| SERVER RUNNING |
+--------------------------------------------------------+
| |
| Rocket.Chat Version: 5.3.1 |
| NodeJS Version: 14.19.3 - x64 |
| MongoDB Version: 4.4.16 |
| MongoDB Engine: wiredTiger |
| Platform: linux |
| Process Port: 3000 |
| Site URL: https://softbauware.rocket.chat |
| ReplicaSet OpLog: Enabled |
| Commit Hash: a639f2002a |
| Commit Branch: HEAD |
| |
+--------------------------------------------------------+
Client Setup Information
- Desktop App or Browser Version: A modified Rocket.Chat.Net client I am currently working on
Additional context
Relevant logs:
{"msg":"changed","collection":"stream-room-messages","id":"id","fields":{"eventName":"GENERAL","args":[{"_id":"ppnsxvZCmfNAge69R","rid":"GENERAL","msg":"Hello!","ts":{"$date":1669973272961},"u":{"_id":"initialuser","username":"softbauware","name":"softbauware"},"_updatedAt":{"$date":1669973272988},"urls":[],"mentions":[],"channels":[],"md":[{"type":"PARAGRAPH","value":[{"type":"PLAIN_TEXT","value":"Hello!"}]}]}]}}