Skip to content
Snippets Groups Projects
Commit 8e594264 authored by Edric Milaret's avatar Edric Milaret
Browse files

im: fix for old im file

- Before June19th 2015 there was no peers section in the
im history file.

Change-Id: I02b66d560a22bb04833cfb65cc71d475555b519f
Tuleap: #432
parent dd1cdd30
No related branches found
No related tags found
No related merge requests found
...@@ -331,6 +331,9 @@ Media::TextRecording* Media::TextRecording::fromJson(const QList<QJsonObject>& i ...@@ -331,6 +331,9 @@ Media::TextRecording* Media::TextRecording::fromJson(const QList<QJsonObject>& i
//Reconstruct the conversation //Reconstruct the conversation
//TODO do it right, right now it flatten the graph //TODO do it right, right now it flatten the graph
for (const Serializable::Peers* p : t->d_ptr->m_lAssociatedPeers) { for (const Serializable::Peers* p : t->d_ptr->m_lAssociatedPeers) {
//Seems old version didn't store that
if (p->peers.isEmpty())
continue;
// TODO: for now assume the convo is with only 1 CM at a time // TODO: for now assume the convo is with only 1 CM at a time
auto peerCM = p->peers.at(0)->m_pContactMethod; auto peerCM = p->peers.at(0)->m_pContactMethod;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment