diff options
author | Raquel Medina <raquel.medina@konsulko.com> | 2020-08-06 14:22:02 +0200 |
---|---|---|
committer | Raquel Medina <raquel.medina@konsulko.com> | 2020-08-14 13:07:05 +0200 |
commit | 9209b7d5bd23d05cebaf0ffc1b77e39525bc63cf (patch) | |
tree | 7c7d70baa1f6c613c458f2980421336831c57fd4 | |
parent | e366c2c347ec08e98831923f65b569c7c20fd449 (diff) |
fix recent call displayed directionjellyfish_9.99.3jellyfish/9.99.39.99.3
The existing parser would only successfully obtain
pbap call direction data from iphone devices, this
patch extends the filter to read the call direction
from android devices too.
Bug-AGL: SPEC-3537
Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
Change-Id: Ia5622d9ef5ffe8de96bb09c1f7f58a701b7554bf
-rw-r--r-- | pbap/pbap.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pbap/pbap.cpp b/pbap/pbap.cpp index f92139b..a3bde48 100644 --- a/pbap/pbap.cpp +++ b/pbap/pbap.cpp @@ -234,9 +234,10 @@ void Pbap::updateCalls(QJsonArray vcards) name = number; } - type = entry.value("type").toString(); - datetime = entry.value("timestamp").toString(); + QStringList typelist = entry.value("type").toString().split(QRegExp("=")); + type = typelist.takeLast(); + datetime = entry.value("timestamp").toString(); // Convert the PBAP date/time to ISO 8601 format datetime.insert(4, '-'); datetime.insert(7, '-'); |