RocketChat / Rocket.Chat.Apps-engine

The Rocket.Chat Apps engine and definitions.
https://rocketchat.github.io/Rocket.Chat.Apps-engine/
MIT License
114 stars 118 forks source link

getMessages() function of IRoomRead instance is not implemented #599

Open CulturalProfessor opened 1 year ago

CulturalProfessor commented 1 year ago

We are not able to fetch messages in a room. https://github.com/RocketChat/Rocket.Chat.Apps-engine/blob/c773461da5de3666a6d6b8a15e8e4d5e3ff3dd00/src/server/accessors/RoomRead.ts#L27

Screenshot from 2023-03-17 19-08-17

brf153 commented 4 months ago

@CulturalProfessor can I work on this issue?

JeffreytheCoder commented 4 months ago

Same issues were raised before. The attempted solution #162 along with the RC portion #17605 could potentially lock the server considering the large number of messages.

@CulturalProfessor Perhaps we can look into the possibility of implementing a query builder with pagination support. We need to fill the gap of getMessages as it could be a potential roadblock for upcoming GSoC projects like AI Chat Summarizer.

CulturalProfessor commented 4 months ago

Guys maybe @d-gubert can verify here if we should work on this ?