ui/ux: homogenizes parts of the ui
- makes chat messages selectable
- changes ui colors to the Ring blue shades
- attempts to resize the window appropriately at app start
- adds confirmation modals for removing converstations and contacts
- corrects and error in the debug logger
- corrects vcardutils not handling JPEGs
Change-Id: I2c8a63f9c18c734a25dfd61086b137143cdac659
Tuleap: #790
diff --git a/VCardUtils.cpp b/VCardUtils.cpp
index 8ffae3c..7751fe5 100644
--- a/VCardUtils.cpp
+++ b/VCardUtils.cpp
@@ -79,7 +79,12 @@
// because android client builds vcard differently (TYPE=PNG: vs PNG:)
size_t pos = _line.find("PNG:");
- if (pos != std::string::npos)
+ if (pos == std::string::npos) {
+ pos = _line.find("JPEG:");
+ if (pos != std::string::npos)
+ m_mParts[Property::PHOTO].append(_line.substr(pos + 5));
+ }
+ else
m_mParts[Property::PHOTO].append(_line.substr(pos + 4));
return VCARD_INCOMPLETE;