Skip to content
Snippets Groups Projects
Commit b34f0312 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

contactmodel: keep repsence state after subscription

Change-Id: I3501d0ba072bc68685af8ba8c46c22979cc25493
parent 92ab8951
No related branches found
No related tags found
No related merge requests found
...@@ -930,6 +930,7 @@ ContactModelPimpl::addToContacts(const QString& contactUri, ...@@ -930,6 +930,7 @@ ContactModelPimpl::addToContacts(const QString& contactUri,
if (iter != contacts.end()) { if (iter != contacts.end()) {
auto info = iter.value(); auto info = iter.value();
contactInfo.registeredName = info.registeredName; contactInfo.registeredName = info.registeredName;
contactInfo.isPresent = info.isPresent;
iter.value() = contactInfo; iter.value() = contactInfo;
} else } else
contacts.insert(iter, contactInfo.profileInfo.uri, contactInfo); contacts.insert(iter, contactInfo.profileInfo.uri, contactInfo);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment