-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Room meta no longer in message stream #12574
Copy link
Copy link
Closed
Description
Working on current #develop branch (because I need other fixes included there), the __my_messages__ stream no longer includes the room meta object (the second argument emitted in the stream).
It's created here, on the access check when the room object is fetched.
Rocket.Chat/server/stream/messages.js
Lines 35 to 37 in 7df9818
| options.roomParticipant = RocketChat.models.Subscriptions.findOneByRoomIdAndUserId(room._id, this.userId, { fields: { _id: 1 } }) != null; | |
| options.roomType = room.t; | |
| options.roomName = room.name; |
I have a fix to get the room object in the original publish method instead. I will submit that now, but this is a pretty critical change and I'd like to understand it and know how it can happen.
Reactions are currently unavailable