mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-03 22:56:49 +00:00
fix(ui/views/App/Main/Conversation): fix chat filter
This commit is contained in:
parent
6c871ef0d0
commit
e309060fa2
1 changed files with 5 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue