Commit e309060f authored by Ronan's avatar Ronan
Browse files

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

parent 6c871ef0
......@@ -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)
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment