Currently all in/out messages that belong to the same anonymity group are retrieved together from the database. However, practical usage of messaging applications suggests that most uses cases would prefer to retrieve messages to/from a specific peer in a given group. Thus, a "conversation" should be a back-and-forth exchange with a specified peer in a specified group, and the database and REST API should be constructed around supporting retrieval of conversation operations quickly and easily.
Currently all in/out messages that belong to the same anonymity group are retrieved together from the database. However, practical usage of messaging applications suggests that most uses cases would prefer to retrieve messages to/from a specific peer in a given group. Thus, a "conversation" should be a back-and-forth exchange with a specified peer in a specified group, and the database and REST API should be constructed around supporting retrieval of conversation operations quickly and easily.