Swarm-history: Use history loaded by daemon
https://review.jami.net/q/topic:swarm-history
TODO
- Use
loadConversation
instead ofloadConversationMessages
- Use
SwarmLoaded
instead ofconversationLoaded
- This gives the following structure:
struct SwarmMessage
{
std::string id;
std::string type;
std::string linearizedParent;
std::map<std::string, std::string> body;
std::vector<std::map<std::string, std::string>> reactions;
std::vector<std::map<std::string, std::string>> editions;
};
Containing the reactions, editions (previous bodies) directly inside the message
- Remove custom logic to linearize the history, filter merge messages (they are removed by the daemon), build reaction/editions
- Use new signals
SwarmMessageReceived
,SwarmMessageUpdated
(if edited, deleted or parent changes),ReactionAdded
,ReactionRemoved
to update the view/reactions