From 4cdd89265cd2a0bb11de3aac4addcbf8957ffed1 Mon Sep 17 00:00:00 2001 From: Nicolas Jager <nicolas.jager@savoirfairelinux.com> Date: Sun, 2 Oct 2016 16:53:16 -0400 Subject: [PATCH] fix : property _unreadMessages set at 0 Change-Id: I7e4a5a9e745abedbb5c5584890e66bbbb7273e4c Tuleap: #1203 --- SmartPanel.xaml.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/SmartPanel.xaml.cpp b/SmartPanel.xaml.cpp index 8aec15d..e091474 100644 --- a/SmartPanel.xaml.cpp +++ b/SmartPanel.xaml.cpp @@ -255,15 +255,22 @@ SmartPanel::_smartList__SelectionChanged(Platform::Object^ sender, Windows::UI:: } auto call = item->_call; + auto contact = item->_contact; + if (call) { auto state = call->state; + if (state == CallStatus::IN_PROGRESS) { + if (contact) { + contact->_unreadMessages = 0; + ContactsViewModel::instance->saveContactsToFile(); + } + summonVideoPage(); return; } } - auto contact = item->_contact; if (contact) { summonMessageTextPage(); contact->_unreadMessages = 0; -- GitLab