CodeWittJonas / masterthesis-experiment

0 stars 0 forks source link

Implement Chat Partitioning #8

Open dave7m opened 1 year ago

dave7m commented 1 year ago

We are currently implementing a Chat. Because one chat can become huge, we do not want to fetch an entire chat, but give the client the possibility to fetch a specific number of messages of a chat. The chat retrieval is already implemented (-> new messages get appended at the front of the list - at index 0), but it is missing the opportunity to specify from which to which message should be retrieved.

Add two additional parameters: from: the index of the newest message, including the message with that index. If its index is higher than the chat size, an empty list shall be returned. to: the index of the "oldest" message, excluding the message with that index. If the index is higher than the chat size, all the messages from from until the end of the chat shall be returned

dave7m commented 1 year ago

IMO a bit too complicated^^