From e309060fa242e744e3f3b41214c358b40b7f3a32 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Tue, 4 Apr 2017 10:15:01 +0200 Subject: [PATCH] fix(ui/views/App/Main/Conversation): fix chat filter --- linphone-desktop/ui/views/App/Main/Conversation.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/linphone-desktop/ui/views/App/Main/Conversation.js b/linphone-desktop/ui/views/App/Main/Conversation.js index 086b8e205..9991db350 100644 --- a/linphone-desktop/ui/views/App/Main/Conversation.js +++ b/linphone-desktop/ui/views/App/Main/Conversation.js @@ -2,6 +2,8 @@ // `Conversation.qml` Logic. // ============================================================================= +.import Linphone 1.0 as Linphone + .import 'qrc:/ui/scripts/LinphoneUtils/linphone-utils.js' as LinphoneUtils .import 'qrc:/ui/scripts/Utils/utils.js' as Utils @@ -35,10 +37,10 @@ function getUsername () { function updateChatFilter (button) { if (button === 0) { - chatProxyModel.setEntryTypeFilter(ChatModel.GenericEntry) + chatProxyModel.setEntryTypeFilter(Linphone.ChatModel.GenericEntry) } else if (button === 1) { - chatProxyModel.setEntryTypeFilter(ChatModel.CallEntry) + chatProxyModel.setEntryTypeFilter(Linphone.ChatModel.CallEntry) } else { - chatProxyModel.setEntryTypeFilter(ChatModel.MessageEntry) + chatProxyModel.setEntryTypeFilter(Linphone.ChatModel.MessageEntry) } }