Skip to content
Snippets Groups Projects
Commit 4cdd8926 authored by Nicolas Jager's avatar Nicolas Jager
Browse files

fix : property _unreadMessages set at 0

Change-Id: I7e4a5a9e745abedbb5c5584890e66bbbb7273e4c
Tuleap: #1203
parent 14ba30c4
Branches
No related tags found
No related merge requests found
...@@ -255,15 +255,22 @@ SmartPanel::_smartList__SelectionChanged(Platform::Object^ sender, Windows::UI:: ...@@ -255,15 +255,22 @@ SmartPanel::_smartList__SelectionChanged(Platform::Object^ sender, Windows::UI::
} }
auto call = item->_call; auto call = item->_call;
auto contact = item->_contact;
if (call) { if (call) {
auto state = call->state; auto state = call->state;
if (state == CallStatus::IN_PROGRESS) { if (state == CallStatus::IN_PROGRESS) {
if (contact) {
contact->_unreadMessages = 0;
ContactsViewModel::instance->saveContactsToFile();
}
summonVideoPage(); summonVideoPage();
return; return;
} }
} }
auto contact = item->_contact;
if (contact) { if (contact) {
summonMessageTextPage(); summonMessageTextPage();
contact->_unreadMessages = 0; contact->_unreadMessages = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment