Hey guys!
I use extraData
param in createChannel method to store my custom props for channels, but the problem arises when i try to use that props in roomList module. I need to fetch my props there but it seems impossible due to incorrect DB collection usage. This is how I try to fetch it:
const realRooms = RocketChat.models.Rooms.find({}, {
fields: {
customProp: 1,
name: 1
}
}).fetch();
This gives me probably cached room list without customProp
. Can you help me figure out how to make it properly?
Thx.