fix(ui/views/App/Main/Conversation): fix chat filter

This commit is contained in:
Ronan Abhamon 2017-04-04 10:15:01 +02:00
parent 6c871ef0d0
commit e309060fa2

View file

@ -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)
}
}